vscode debuger egg.js

前言

egg.js 代码测试覆盖率超过90%,大部分的逻辑都覆盖在测试用例中。需要知道egg.js是如何运行起来的最好的方式就是查看测试用例

实例

[
        {
            "type": "node",
            "request": "launch",
            "name": "Egg Debug",
            "runtimeExecutable": "npm",
            "runtimeArgs": ["run", "debug", "--", "--inspect-brk"],
            "console": "integratedTerminal",
            "restart": true,
            "protocol": "auto",
            "port": 9229,
            "autoAttachChildProcesses": true
          },
          {
            "type": "node",
            "request": "launch",
            "name": "Egg Test",
            "runtimeExecutable": "npm",
            "runtimeArgs": ["run", "test-local", "--", "--inspect-brk"],
            "protocol": "auto",
            "port": 9229,
            "autoAttachChildProcesses": true
          },
          {
            "type": "node",
            "request": "attach",
            "name": "Egg Attach to remote",
            "localRoot": "${workspaceRoot}",
            "remoteRoot": "/usr/src/app",
            "address": "localhost",
            "protocol": "auto",
            "port": 9999
          }
    ]

你可能感兴趣的:(vscode debuger egg.js)