Chrome 73: Can no longer debug NodeJS with Dedicated DevTools for Node

纵饮孤独 提交于 2019-11-29 05:28:53

Yes, it's a bug with v73. I am also seeing it

https://bugs.chromium.org/p/chromium/issues/detail?id=941608&q=nodeJS

Update

This bug was fixed in chrome 74.0.3729.61 check here


you might use ndb which is tailored for node.js and also from GoogleChromeLabs.

install using

npm install -g ndb

Usage:

Use ndb instead of node command:

    ndb server.js
    # Alternatively, you can prepend `ndb`
    ndb node server.js

Prepend ndb in front of any other binary:

    ndb npm run unit
    ndb mocha
    ndb npx mocha

Launch ndb as a standalone application:

    # cd to your project folder (with a package.json)
    ndb .
    # In Sources panel > "NPM Scripts" sidebar, click the selected "Run" button

if you are using nodemon:

 ndb nodemon .

for further details see the project github repository

https://github.com/GoogleChromeLabs/ndb

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