Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I've just upgraded my Chrome to 73.0.3683.75 (Linux) and now cannot get my dedicated Node debugger to actually debug a running instance. Even though I can see the "Debugger attached" message in the console:

$ node --inspect-brk hello.js
Debugger listening on ws://127.0.0.1:9229/864a1c18-5e45-49ab-843c-77a22841ffff
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.

the debugger window does not show any signs of debugging a target: Dedicated Node debugger window

Anyone has an idea if this is broken in Chrome 73 or if I'm doing something wrong? Thanks!

like image 253
Alexander Pavlov Avatar asked Sep 11 '25 07:09

Alexander Pavlov


2 Answers

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

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

like image 179
Carl von Buelow Avatar answered Sep 14 '25 00:09

Carl von Buelow


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

like image 25
Mohammed Essehemy Avatar answered Sep 13 '25 22:09

Mohammed Essehemy