Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

launch dedicated DevTools for Node.js from command-line

I wondering how to launch "Open dedicated DevTools for Node" directly from the (windows or linux) command-line, without using chrome://inspect url then Open dedicated DevTools for Node button ?

My aim is to automatically run debugger for node.js:

launchDedicatedDevToolsForNode();
require('inspector').open(null, null, true); // sync
debugger;

note:
The underlying command, just behind the click handler of "Open dedicated DevTools for Node" link is:

chrome.send("open-node-frontend")
like image 396
Franck Freiburger Avatar asked Sep 06 '25 11:09

Franck Freiburger


1 Answers

You have to write your extension on chrome and run the command there

chrome.send("open-node-frontend")

like image 190
Иван Вольнов Avatar answered Sep 09 '25 05:09

Иван Вольнов