How to break at a specific function or line with the Node.js node inspect command line step debugger without modifying the source?

前端 未结 0 1237
死守一世寂寞
死守一世寂寞 2020-12-29 20:57

main.js

#!/usr/bin/env node

function myfunc(i) {
  return i + 1;
}

let i = 1;
i += 1;
console.log(myfunc(i));

Start debugging:



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题