启动我的nodejs应用程序后,我看到控制台输出
/usr/local/bin/node /Users/my/index.js
Debugger listening on ws://127.0.0.1:51650/19e65b0f-f9cb-41fd-89c6-1668ae0e6522
For help see https://nodejs.org/en/docs/inspector
Debugger attached.
而且,在我的代码中,我正在分叉这样的子进程
let worker = cluster.fork({
worker_id: task._id,
execArgv:['--inspect-brk']
}).on('error', e => {
error(prefix, 'error', e)
finish(e)
})
但是,以下输出是
Error in JetBrains node debug connector: Failed to detect opened port
。
如何启用调试?