杨魅力
文档里面写的很清楚啊使用egg-development-proxyworker这个插件,vscode的配置应该是这样的 "version": "0.2.0", "configurations": [ { "name": "Launch Egg", "type": "node", "request": "launch", "cwd": "${workspaceRoot}", "runtimeExecutable": "npm", "windows": { "runtimeExecutable": "npm.cmd" }, "runtimeArgs": [ "run", "dev", "--", "--debug" ], "protocol": "legacy", "port": 5858 }, { "name": "Attach Agent", "type": "node", "request": "attach", "port": 5856 }, { "name": "Attach Worker", "type": "node", "request": "attach", "restart": true, "port": 10086 } ], "compounds": [ { "name": "Debug Egg", "configurations": ["Launch Egg", "Attach Agent", "Attach Worker"] } ]}