-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fatal error occurred when hitting breakpoint which use es6 proxy #356
Comments
Unfortunately this looks a lot like a bug in nodejs (specifically in v8 actually): https://bugs.chromium.org/p/v8/issues/detail?id=3270 I also just tried this out in node 6.9.1 and hit what looks like the same issue. Until node/v8 addresses this issue, we won't be able to debug in places where the debugger would inspect a proxy. |
I found vscode already has a new node debug extension, and there's a similar issue in vscode repo, |
The other node debugging extension that you link to there is using an alternative (and currently experimental) way of debugging node.js which is using the same debugging protocol that Chrome uses. I just tested it out and int does look like this particular issue goes away if we were to use the newer debugger under the hood. That said, the new debugging approach is experimental and subject to change, and it'll take us a bit to move our infrastructure from the current debugger to the new one if we do decide to go that way. We'll have to discuss it and see if there's an alternative approach. Thanks for bringing it to our attention though! |
@MSLaguana How did you test it out? Did you change the type in launch.json? If so, which one did you change? |
I didn't test using the debug adapters, I tested the underlying debugging mechanism. It isn't simple to switch the react-native debugging pipeline that we have to one which uses the new debugger protocol, so I can't provide a workaround for now unfortunately. |
Oh ok, understood. It would be greatly appreciated if maybe you could push a branch with your test :-). I would be willing, and I imagine many others would be willing, to use the experimental approach until its fixed properly. Thanks! |
My test was simpler than you think unfortunately: If you create a JS file with contents
That is enough to show off this particular bug. If you run However, to move our debugger on top of the |
Linking other relevant issues: microsoft/vscode#12749, microsoft/vscode-node-debug#112, #334 (comment) |
This issue has been fixed by switching to |
Actual Behavior
Expected Behavior
Software versions
Outputs (Include if relevant)
Breakpoint is in WebView callback
in normal lines like render, breakpoint works just fine
The text was updated successfully, but these errors were encountered: