-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
loop complete Source objects through debugger UI #1793
Comments
Please note that I verified that this does not break anything but I did not verify if the |
@isidorn the adapterData is correctly passed within a session, but not across different sessions. So it does not seem to be persisted in breakpoints. |
@weinand out of curiosity, what kind of data would that be? Isn't there |
@felixfbecker node-debug supports setting breakpoints in inlined source (that is source that lives in the source map which again might be inlined in the generated source). In order to restore these breakpoints on session start, node-debug needs to have enough information in the Source object to find the source map. The 'sourceReference' in Source is only valid for a session and cannot be used to persist 'virtual sources' (see comment in debugProtocol.d.ts). |
@weinand thanks, seems logical. |
…ce from the active stack trace. fixes #1793
@isidorn for breakpoints persisted in a previous session I do not get the 'adapterData' back in the setBreakpointsRequest. |
If a debug adapter wants to support breakpoints in non-standard source like 'inlined source maps', it has to add additional data to the Source object returned to the debug UI and it expects that this data will arrive intact when the UI passes the Source back to the debug adapter. In addition the front-end has to persist this data across sessions.
I've added an optional attribute 'adapterData' to the Source class. VSCode debug UI should leave the data intact and persist it across sessions. VSCode debug UI should not interpret the data.
The text was updated successfully, but these errors were encountered: