Skip to content
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

Support multiple exception breakpoint profiles #147096

Closed
johnrom opened this issue Apr 8, 2022 · 2 comments
Closed

Support multiple exception breakpoint profiles #147096

johnrom opened this issue Apr 8, 2022 · 2 comments
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s)

Comments

@johnrom
Copy link

johnrom commented Apr 8, 2022

Currently, if running a composite launch profile with for example .Net and Chrome configurations simultaneously, there is only one Exception Breakpoint profile for both. This is an issue because JS in the browser and .Net have very different ways of treating errors.

In JS, especially in the browser, it's very common to purposefully trigger errors for the purposes of determining when polyfills are needed. These errors are meaningless to the end-developer most of the time and thus the developer will want to ignore the thousands of caught errors polyfills trigger. (Of course, the polyfill developer may think they are important and so they may need to break on caught errors.)

On the other hand, in .Net it's very likely that your very meaningful Exception has been caught by .Net for the purposes of finishing the MVC middleware pipeline and returning meaningful information to the developer via the Developer Exception middleware. Thus, when debugging Exceptions in .Net, it is usually important to debug Caught exceptions.

Unfortunately, when checking Caught exceptions for .Net, one must Continue through thousands of polyfill errors in Chrome, or use a different browser just to trigger a request where Caught exceptions are being debugged. This may also be an issue if you are using JS + .Net microservices in tandem.

I think #126608 is related, but it doesn't include the fact that the breakpoint profiles are actually the same. I believe the PHP debugger actually uses different terminology (Errors, Exceptions, Everything) to refer to Break on Exception and thus they may actually not conflict the way Chrome, NodeJS, and .Net exceptions do.

@weinand
Copy link
Contributor

weinand commented Oct 19, 2022

/duplicate #126608

@weinand weinand added the debug Debug viewlet, configurations, breakpoints, adapter issues label Oct 19, 2022
@weinand weinand removed their assignment Oct 19, 2022
@VSCodeTriageBot VSCodeTriageBot added the *duplicate Issue identified as a duplicate of another issue(s) label Oct 19, 2022
@VSCodeTriageBot
Copy link
Collaborator

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!

@VSCodeTriageBot VSCodeTriageBot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

3 participants