node 调试技巧

1、在vs code左侧打上断点

2、进入配置项

 

3、进入调试

 

4、条件断点:

function test(n){
    console.log(n);
}

for (let i = 0; i < 100; i++) {
    const n=parseInt(Math.random()*10);

    test(n);
}

 

posted @ 2019-07-10 22:33  金钩梨  阅读(119)  评论(0编辑  收藏  举报