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

loop complete Source objects through debugger UI #1793

Closed
weinand opened this issue Jan 5, 2016 · 6 comments
Closed

loop complete Source objects through debugger UI #1793

weinand opened this issue Jan 5, 2016 · 6 comments
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality verified Verification succeeded
Milestone

Comments

@weinand
Copy link
Contributor

weinand commented Jan 5, 2016

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.

@weinand weinand added feature-request Request for new features or functionality debug Debug viewlet, configurations, breakpoints, adapter issues labels Jan 5, 2016
@weinand weinand added this to the Jan 2016 milestone Jan 5, 2016
@isidorn isidorn closed this as completed in f5d3f99 Jan 5, 2016
@isidorn
Copy link
Contributor

isidorn commented Jan 5, 2016

Please note that I verified that this does not break anything but I did not verify if the adapterData gets passed through. Though it should work 😇

@weinand
Copy link
Contributor Author

weinand commented Jan 5, 2016

@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 weinand reopened this Jan 5, 2016
@felixfbecker
Copy link
Contributor

@weinand out of curiosity, what kind of data would that be? Isn't there sourceReference for virtual sources?

@isidorn isidorn closed this as completed in 220078f Jan 6, 2016
@weinand
Copy link
Contributor Author

weinand commented Jan 6, 2016

@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).

@felixfbecker
Copy link
Contributor

@weinand thanks, seems logical.

@egamma egamma mentioned this issue Jan 6, 2016
59 tasks
isidorn added a commit that referenced this issue Jan 6, 2016
@weinand
Copy link
Contributor Author

weinand commented Jan 8, 2016

@isidorn for breakpoints persisted in a previous session I do not get the 'adapterData' back in the setBreakpointsRequest.

@weinand weinand reopened this Jan 8, 2016
@isidorn isidorn closed this as completed in 105fb54 Jan 8, 2016
@egamma egamma mentioned this issue Feb 1, 2016
97 tasks
@isidorn isidorn added the verified Verification succeeded label Feb 26, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
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 feature-request Request for new features or functionality verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

3 participants