You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
inspector: crash on debugger connection if JS session is already active #16852
@ofrobots@eugeneo What should happen here? Should the port automatically be incremented? I assume it crashes as port 9922 is already used by the main process?
This is a bug in the Node inspector code. There is an assertion thrown when WS session is connected while there's a JS bindings session.
I tried to fix it in the past, but it requires a rework of the WS connection process that is currently happening on another thread but now will need a roundtrip to the main thread.
Chrome is currently launching support for the multiple concurrent Inspector sessions. Once that support is stable and Node moves on a compatible V8, this assertion will be removed. There will likely be a need to do some other work in Node.js to support concurrent sessions - but at least this bug will be auto-fixed.
Activity
TimothyGu commentedon Nov 7, 2017
Seems to be a duplicate of #14745. Specifically #14745 (comment)
auchenberg commentedon Nov 7, 2017
@ofrobots @eugeneo What should happen here? Should the port automatically be incremented? I assume it crashes as port
9922is already used by the main process?eugeneo commentedon Nov 7, 2017
This is a bug in the Node inspector code. There is an assertion thrown when WS session is connected while there's a JS bindings session.
I tried to fix it in the past, but it requires a rework of the WS connection process that is currently happening on another thread but now will need a roundtrip to the main thread.
Chrome is currently launching support for the multiple concurrent Inspector sessions. Once that support is stable and Node moves on a compatible V8, this assertion will be removed. There will likely be a need to do some other work in Node.js to support concurrent sessions - but at least this bug will be auto-fixed.
eugeneo commentedon Nov 7, 2017
I am still planning to take another look at this bug later this week, time permitting - I think there might be a reasonable fix.
inspector: Fix crash for WS connection
inspector: Fix crash for WS connection
heisian commentedon Jul 13, 2018
Node is wonderful, we get the opportunity to debug the debugger.