1新建一个debug.js
vara='world';
varb=function(x){
console.log("hello"+x)
};
b(a);
在终端中输入nodedebugdebug.js
E:\node>nodedebugdebug.js
<Debuggerlisteningonport5858
debug>.ok
breakinE:\node\debug.js:1
>1vara='world';
2varb=function(x){
3console.log("hello"+x)
debug>c
<helloworld
debug>