A proxy worker for debugging worker on egg
npm i egg-development-proxyworker --save
// config/plugin.js
exports.proxyworker = {
enable: true,
package: 'egg-development-proxyworker',
};
// you can use a specify proxy port.
// config/config.default.js
exports.proxyworker = {
port: 10086,
};
// .vscode/launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach Worker",
"type": "node",
"request": "attach",
"restart": true, // Important
"port": 10086 // Your debug port
}
],
}
Please open an issue here.