您的位置:首页 > Web前端 > Node.js

node.js debug调试

2016-11-30 13:07 429 查看
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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  node.js debug调试