1 新建一个debug.js
var a='world';
var b=function(x){
console.log("hello"+x)
};
b(a);
在终端中输入node debug debug.js
E:\node>node debug debug.js
< Debugger listening on port 5858
debug> . ok
break in E:\node\debug.js:1
> 1 var a='world';
2 var b=function(x){
3 console.log("hello"+x)
debug> c
< helloworld
debug>