Run node inspector with mocha

元气小坏坏 提交于 2019-12-02 20:46:03

The problem was my version of mocha. I was running a version older than 3.1.0. --inspect support was added in 3.1.0

I am now able to run with debugging with these lines:

mocha --reporter spec --inspect test.js
mocha --reporter spec --inspect-brk test.js

[DEP0062] DeprecationWarning: node --inspect --debug-brk is deprecated. Please use node --inspect-brk instead.

use in the future

mocha --reporter spec --inspect-brk test.js
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!