0
点赞
收藏
分享

微信扫一扫

node.js debug调试

攻城狮Chova 2022-08-03 阅读 34


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>

举报

相关推荐

0 条评论