-
Notifications
You must be signed in to change notification settings - Fork 133
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: Allow exception conditions to be specified by the protocol #155
Comments
LGTM |
Since the DAP already has a notion of a breakpoint condition, I would like to align exception conditions to breakpoint conditions (and other similar constructs). Neither for breakpoint conditions, nor for the eval request did we specify the concrete syntax of those conditions and/or expressions (since the syntax would be language specific). Would it be possible to just use a string typed attribute |
Breakpoint conditions and evaluations are language-specific, as you noted, so it makes sense to have a free-form experience. Exception conditions (at least in VS) are a bit different, though - the only exception condition VS supports is "Only break if the exception is/is not in this module", and it's exposed through a query-builder sort of UI: We don't have any way to expose a free-form text field to users. We could potentially convert the conditions designed using the UI into a language-specific string, but that would require adapter authors to write a component on the VS side that would do the translation, which we've tried to avoid. |
@richardstanton fyi: |
In Visual Studio, users can ignore first chance exceptions when they are raised in specific modules. This is useful when an external component raises a lot of exceptions that the user does not care about. This feature can be supported by the protocol by adding the concept of exception conditions. Although these conditions are currently either "Module == name" or "Module != name" this proposal lets the condition type be specified in case other condition types are added.
@weinand @andrewcrawley @gregg-miskelly
The text was updated successfully, but these errors were encountered: