Atom node-debugger在启动时出现两个错误

时间:2017-07-08 19:43:56

标签: node.js atom-editor

使用Node 8,我将Node Debugger安装到Atom中,并设置Node的路径。然后我尝试用F5运行一个简单的脚本。我得到了错误:

Connection attempt 1 to node process on 127.0.0.1:5858 failed (node:77739) [DEP0062] DeprecationWarning: node --debug and node --debug-brk are invalid. Please use node --inspect or node --inspect-brk

我该如何解决这个问题?

2 个答案:

答案 0 :(得分:1)

对于此弃用问题,似乎已在回购中打开issue。该软件包需要更新,但似乎在过去几个月没有太多活动。

答案 1 :(得分:0)

如果您通过命令行运行脚本,则可以使用正确的标志。

node ~/my-path/my-file.js --inspect=5858