Click Add Configuration, add nodeJs the launch.json
editor launch.json
, it can set launch.json as follows:
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}/bin/www",
"skipFiles": [
"<node_internals>/**"
]
},
{
"type": "node",
"request": "attach",
"name": "Attach",
"port": 5858
}
]
}
run: