【发布时间】:2018-05-27 18:46:24
【问题描述】:
运行 nodemon --inspect index.js 或 nodemon --debug index.js 不起作用。
节点版本:8.9.1
Nodemon 版本:1.12.6
我试过这些都没有运气:
nodemon --inspect-brk index.jsnodemon -- --inspect index.jsnodemon index.js -- --inspect index.jsnodemon index.js -- --debug index.jsnodemon -- --debug index.jsnodemon --inspect --debug index.jsnodemon --debug-brk index.js
但是node --inspect index.js 或node --inspect-brk index.js 有效。我想知道怎么做?如果有任何替代方案或某种解决方法也很好。
如果您需要进一步说明,请发表评论。
【问题讨论】:
-
nodemon --inspect index.js为我工作。 -
@Chris911 您使用的是
nodemon和node的哪个版本?我已经尝试nodemon --inspect index.js近 20 次了。它对我不起作用。
标签: javascript node.js debugging nodemon