-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Breakpoints are not able to move to different sources on update #89756
Comments
I acknowledge this limitation. Code pointer
|
Not super high priority but I would prefer this to get fixed before js-debug exits preview, so within the next two milestones probably. |
Ok, makes sense. Let's assign to February and try to get it in then. |
Played around with this, where we derive the sourceReference from a hash of the original source data: microsoft/vscode-js-debug#277 (comment) However it looks like even if the source reference and paths is the same between sessions, VS Code still treats them as separate files. So then it looks like unless the source reference is 0 they're always different, I don't think there's any way to implement this correctly at the moment. Here's a log of a restarted debug session:
|
@connor4312 I pushed a potential fix for this. Please try it out and let me know how it goes.
|
Works beautifully, thank you! |
Good to know, thanks! |
@connor4312 actually my change to ignore the query when opening the source is BAD. @weinand just found a regression.
So across sessions the sources with sourceRef != 0 will always be different. |
Hm, okay. Well if the breakpoint can still move to a different Source it will still be better than it was--just confusing if the user kept the file from the previous session open in their editor. |
Yeah, breakpoints can still move to a different Source I did not revert that. That part is perfectly fine. |
See microsoft/vscode-js-debug#277 (comment). Tl;dr is that in a new debug session, the 'same' sources can get assigned different source references. Although we can use extra information in the
adapterData
of the source to reconcile the breakpoint to the correct place, updating the source referenced in the breakpoints changed event doesn't appear to have an effect.The text was updated successfully, but these errors were encountered: