user1506145
user1506145

Reputation: 5286

Open Chrome NodeJS Debugger in a Tab instead of a New window

Is it possible to open the Chrome NodeJS debugger after running node --inspect-brk and going to chrome://inspect in a Tab instead of a standalone Window?

Upvotes: 2

Views: 1504

Answers (2)

Ray Foss
Ray Foss

Reputation: 3873

This extension worked for me

enter image description here

https://chrome.google.com/webstore/detail/nodejs-v8-inspector-manag/gnhhdgbaldcilmgcpfddgdbkhjohddkj/related?hl=en

It supports opening in a tab and reconnecting automatically. It's add supported.

Upvotes: 1

Josh Lee
Josh Lee

Reputation: 177550

~$ curl http://localhost:9229/json/list 
[ {
  "description": "node.js instance",
  "devtoolsFrontendUrl": "chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:9229/043a8dfa-cd2b-4d41-82db-740a9d332499",
  "faviconUrl": "https://nodejs.org/static/favicon.ico",
  "id": "043a8dfa-cd2b-4d41-82db-740a9d332499",
  "title": "/Users/josh/.nvm/versions/node/v8.9.1/bin/node",
  "type": "node",
  "url": "file://",
  "webSocketDebuggerUrl": "ws://127.0.0.1:9229/043a8dfa-cd2b-4d41-82db-740a9d332499"
} ]

Open the chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:9229/043a8dfa-cd2b-4d41-82db-740a9d332499 URL in a Chrome tab.

The Inspector Help page links to a Chrome extension that purports to open this link automatically, but it didn't work for me.

Upvotes: 2

Related Questions