egg-debug-Json

165 阅读1分钟
    "configurations": [
        {
            "name": "Launch Egg",
            "type": "node",
            "request": "launch",
            "cwd": "${workspaceRoot}",
            "runtimeExecutable": "npm",
            "windows": { "runtimeExecutable": "npm.cmd" },
            // 启动我们的 egg-bin debug 并默认是 brk
            "runtimeArgs": [ "run", "debug", "--", "--inspect-brk" ],
            // 日志输出到 Terminal,否则启动期的日志看不到
            "console": "integratedTerminal",
            "protocol": "auto",
            // 进程重启后自动 attach
            "restart": true,
            // 因为无需再 proxy,故改回原来的 9229 端口
            "port": 9229,
            // 自动 attach 子进程
            "autoAttachChildProcesses": true
        },
        {
            "type": "node",
            "request": "launch",
            "name": "Egg Test",
            "runtimeExecutable": "npm",
            "runtimeArgs": [
                "run",
                "test-local",
                "--",
                "--inspect-brk"
            ],
            "protocol": "auto",
            "port": 9229,
            "autoAttachChildProcesses": true,
            "disableOptimisticBPs": false,
        }
    ]