1. 程式人生 > >node.js 除錯 eggs launch.json配置資訊

node.js 除錯 eggs launch.json配置資訊

{
    // 使用 IntelliSense 瞭解相關屬性。 
    // 懸停以檢視現有屬性的描述。
    // 欲瞭解更多資訊,請訪問: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "除錯",
            "type": "node",
            "request": "launch",
            "cwd": "${workspaceRoot}",//這裡是檔案位置
            "runtimeExecutable": "npm",
            "windows": { "runtimeExecutable": "npm.cmd" },
            "runtimeArgs": [ "run", "debug" ],
            "console": "integratedTerminal",
            "protocol": "auto",
            "restart": true,
            "port": 9999
        }
    ]
}