打赏

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

 

posted @ 2022-05-28 09:57  孟繁贵  阅读(166)  评论(0编辑  收藏  举报
TOP