-
Notifications
You must be signed in to change notification settings - Fork 78
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
Debug Protocol: Support for getting information about a thrown exception #97
Comments
I think |
@DavidKarlas - Sounds reasonable. VS only supports a single inner exception per exception, but there's no reason another UI couldn't support multiple. |
@andrewcrawley One thing I was thinking about -- will |
@gregg-miskelly - The description for the |
@andrewcrawley I guess it depends on how the VS Code team would like to resolve microsoft/vscode#16860. If they would like to just display the |
|
In general, the proposed members are mirroring VS structs. Members that you don't think would be broadly useful could certainly be included in a private extension, similar to how information on Modules is returned.
and
When an exception occurs, VS expects you to notify it of this numeric code, if present. It might be possible for us to determine heuristically whether an exception string such as "W32/0xC0000026" represents a code or a name, but it seemed easier to just have the debug adapter specify it, since it knows which is which. This is used in the VS UI as the exception helper popup has a checkbox to allow you to easily ignore this exception in the future, which requires the numeric value (if any).
|
I've created PR #101 with the proposed changes.
Namedrops: @jacdavis @gregg-miskelly @richardstanton @tzwlai @WardenGnaw |
@weinand - looks good to me! |
When we receive a 'stopped' event with a reason of 'exception', we need additional information about the exception that has occurred.
Information we need in order to support VS scenarios:
"**System.ArgumentNullException:** 'Value cannot be null\.'"
This seems like functionality that would be broadly useful for anyone who wants to participate in the new exception experience enabled by #64.
Proposed protocol extension (implemented and verified in the VS debug adapter host):
Namedrops: @jacdavis @gregg-miskelly @richardstanton @tzwlai @WardenGnaw
The text was updated successfully, but these errors were encountered: