egg调试请教
发布于 2 个月前 作者 vitozyf 419 次浏览 来自 问答

config端口是7001 配置调试的launch.json如下:

"configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Egg Debug",
      "runtimeExecutable": "npm",
      "runtimeArgs": ["run", "debug", "--", "--inspect-brk"],
      "console": "integratedTerminal",
      "restart": true,
      "protocol": "auto",
      "port": 9229,
      "autoAttachChildProcesses": true
    }
]

启动调试后如下 image.png

目前7001访问不了,9229 5800 也不行,请问怎么发起请求进入断点?

1 回复

先改为

"runtimeArgs": ["run", "debug"], 试试

回到顶部