In Visual Studio Code, when debugging after updating node to version 9.10.1, now I get

node --inspect-brk=38580 objects.js Debugger listening on ws://127.0.0.1:38580/d023d818-10f5-4499-b1d0-a30b4e1af713 Debugger attached. Waiting for the debugger to disconnect... 

Launch.json settings

 { "version": "0.2.0", "configurations": [ { "type": "node", "request": "launch", "name": "Launch Program", "program": "${workspaceFolder}/objects.js" } ] } 

Reinstalled VSCode - did not help.

Who faced similar? How to overcome it?

    1 answer 1

    Solved this question. I will leave the decision here, it may be useful to someone.

    You need to specify the path to the node in the "runtimeExecutable" property. I put the node through nvm, so it turned out like this:

     { "version": "0.2.0", "configurations": [ { "type": "node", "request": "launch", "name": "Launch Program", "program": "${workspaceFolder}/objects.js", "runtimeExecutable": "/home/user/.nvm/versions/node/v9.10.1/bin/node", } ] }