Tag:visual-studio-codenode.js
Article From:https://segmentfault.com/q/1010000012140971
Question:

vscode Debugging nodejs debug can’t be debugged
After F5, the output of the bottom information is finished.
My launch configuration is
`

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

`
vscodeEdition
Version 1.18.1
Submit 929bacba01ef658b873545e26034d1a8067445e9
Date 2017-11-16T18:32:36.026Z
Shell 1.7.9
Renderer 58.0.3029.110
Node 7.9.0
Architecture IA32
vscodeOutput information
Debugging with inspector protocol because Node.js v8.9.0 was detected.
node –inspect-brk=44491 buildwebpack.dev.conf.js
Debugger listening on ws://127.0.0.1:44491/6106fe32-29c1-43e6-a966-ab0f6992084e
Debugger attached.
Waiting for the debugger to disconnect…

Answer 0:

Change program to “program”: “${file}”
Your configuration always runs….def.conf.js file, to ${file} is to run the current file.

Link of this Article: Vscode debug nodejs can’t run up

Leave a Reply

Your email address will not be published. Required fields are marked *