Closed FoxxMD closed 3 months ago
Changes that fix the crash:
Instead of using arrow function form for class static method use the normal form. This does not cause the debugger to crash.
It's probably a good idea to do a refactor for all class methods to avoid using fat arrow due to this
limitations, anyway.
As mentioned in https://github.com/nodejs/node/issues/46578 upgrading to 20.x causes debugger to not crash even when using fat arrow static methods.
If mocha tests are run while debugging node then a listenbrainz test that accesses the static method
listenResponseToPlay
nodejs crashes with SIGSEGV.develop
branchdebugger;
statement in listenResponseToPlayOn break run:
Produces this error:
The error produced and required conditions seem extremely similar to https://github.com/nodejs/node/issues/46578
It's important to note this only occurs when debugging nodejs, breaking in the method, and evaluating an expression. It does not occur for normal tests (not debugging) or normal usage of MS.