Comments (4)
LGTM
from debug-adapter-protocol.
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 condition
in the ExceptionOptions
?
A language agnostic debugger like VS Code would offer a text input box to specify the condition and the DA would return an error in case of a syntax error?
from debug-adapter-protocol.
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.
from debug-adapter-protocol.
@richardstanton fyi:
With #137 we have added condition support for exceptions in a way that is aligned with conditional breakpoints. VS Code already supports the new DAP feature and it would be possible to have conditions like "moduleName == foo && moduleName == bar".
from debug-adapter-protocol.
Related Issues (20)
- Example on how to launch debug adapter HOT 3
- Standardise the ability for client/DA to use URIs in place of file paths (enabling debugging of non-file:/ sources) HOT 17
- Add additional data fields for breakpoints HOT 11
- Evaluation time out HOT 1
- Clarifications for setExceptionBreakpoints HOT 6
- Ordering of launch, setBreakpoints, and configurationDone HOT 3
- Add a "type" field for SourceBreakpoints HOT 16
- Add a `bytes` range to the DataBreakpointInfo Request HOT 14
- Clarification of the meaning of '?' in a request HOT 1
- Is it always allowed to send requests that control execution? HOT 3
- Proposal: Add new reason `finished` or `stepOut` and optional field `returnValue` to `Stopped Event` HOT 21
- OutputEvent variablesReference lifetime clarification HOT 1
- How does the debugger notify dap client that a breakpoint is disabled? HOT 8
- Proposal: add a document location to the evaluate request for the 'hover' variant. HOT 18
- Help needed : Disassembly a C/C++ frame (function) HOT 2
- Minor inconsistency in "evaluate" description
- Debug Event which is responsible for loading source file in Editor HOT 1
- > Alternatively, a statement that “typically the return value from the last function call should be reported as a Scope named ‘return’” might help with consistency for users.
- Public changelog has no date stamps HOT 1
- [Question][Feature request] is it able to integrate to monaco editor? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from debug-adapter-protocol.