-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
New Uncaught Exception when starting an extension debugging session #24482
Comments
@eamodio This promise is handled. Just look at line 98. |
@joaomoreno Sorry I should have been clearer. I definitely agree that the exception is handled, but for some reason vscode breaks on that line -- like shown in the screenshot every time it starts up and I don't have break on all exceptions on and it just started happened with the previous insiders build than I reported it on (since there was an update in between). |
@weinand A |
dup of #1746 |
@weinand was there a switch to the something new in the insiders build? Because I don't see this same behavior in 1.11.1 and it just started 2 build ago for me. |
@eamodio no, there was no change in that area (and I can reproduce the issue in 1.11.1 too). With both settings off, VS Code will not break. |
@weinand Had me worried for a minute there ;) but no, I have EDIT: Was also worried that I didn't have the Preview SCM enabled in |
Aha, I see that you are doing extension development and you are using Electron's builtin node.js. We have upgraded the Electron used in Insiders and that seems to have changed the way "rejects" are surfaced. So it looks like the node.js built into Electron now has the same "reject" behaviour as the regular node.js. For extension debugging I will enable the fix that I've already implemented some time ago (but was reluctant to enable it for general node debugging; see my comment #1746 (comment)) |
In tomorrows Insiders build rejects should no longer break. |
@weinand How do we enable this "Promise Rejects" feature? I noticed it documented in the new release here: https://code.visualstudio.com/updates/v1_12, and I am running 1.12.1 now... But all I see under breakpoints is "All Exceptions" and "Uncaught Exceptions". Here's my launch.json:
|
@subatomicglue this new exception config option is only available for extension host debugging, that is |
After switching EH debugging to "inspector" protocol, we are running now into the same issue we had for "legacy": I suggest to fix it in the same way I did for "legacy" (and since we both know that the 'reject' detection heuristic is a bit of a hack, this exception config option only shows up for debug type "extensionHost"). I've created microsoft/vscode-node-debug2#132 to track this. |
Steps to Reproduce:
Uncaught Exceptions
on)I've also seen the same error when trying to debug the API tests in the VSCode project
The text was updated successfully, but these errors were encountered: