node vscode 调试
1、vscode调试
https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_supported-nodelike-runtimes
主要配置:
stopOnEntry
args
cwd
env
2、参考配置
{ "configurations": [ { "name": "Launch Program", "program": "${workspaceFolder}/packages/build/src/index.js", "request": "launch", "skipFiles": [ "<node_internals>/**" ], "stopOnEntry": true, "type": "pwa-node", "cwd": "${workspaceFolder}/packages/project-test", "args": [ "--output=/packages/project-test/dist"] } ] }
作者:孟繁贵 Email:meng010387@126.com 期待共同进步!