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"] } ] }