You can add the following line of code to the top of app.js
:
require('inspector').open(9229, '0.0.0.0')
That will start the V8 inspector when the app gets started, and you can interact with it from a regular Chrome browser (open chrome://inspect/
and it should be able to find it).
I have no idea if/how this works in combination with VScode. Also, make sure to remove that line from the code once you’re ready to publish the app.