-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
setBreakPointsRequest argument for source.name is no longer defined #24895
Comments
From @Gama11 on April 15, 2017 14:59 We're having the same issue in vshaxe-debugadapter (vshaxe/flash-debugger#12), where setting breakpoints is broken with VSCode 1.11.x, but still works fine in 1.10.x, because the adapter assumes |
From @Gama11 on April 15, 2017 15:4 This seems like a bug - despite
|
@isidorn did this change for a reason? The spec says "When sending a source to the debug adapter this name is optional." So DAs must deal with the fact that the name is not defined. |
My interpretation of the spec was the same as @Gama11. I assumed that it's saying the name is optional for a source sent from my side to the VSCode side (such as |
@StephenBloomquist That interpretation isn't correct and doesn't make a lot of sense if you think about it: VS Code can only send back a name to the DA if it has gotten a name from the DA first. VS Code cannot "create" those names on its own because it does not understand the particular semantics of the name. The generic VS Code debugger is just a dumb UI for information provided by the DA. The DA "rules". But we will try to restore the previous behavior if this can avoid any breakage. |
@weinand I'm not sure I entirely understand the reasoning here. Doesn't |
Setting breakpoints is not tied to "files". For example in node-debug you can set breakpoints in internal scripts or evaluated strings that have no representation in the file system. If you stop in this code, the debug adapter (DA) returns in the call stack frames a name and a synthetic path (or reference number) of the code location. The path has no meaning to VS Code (so VS Code can not map it to a file in the workspace). But VS Code uses the path to load the content from the DA into a (readonly) editor where the user can set a breakpoint. In this case VS Code calls |
I have pushed a commit which should revert this behavior and go back to the old way. |
From @StephenBloomquist on April 6, 2017 16:54
As the subject says. The incoming
DebugProtocol.SetBreakpointsArguments
is now giving me an undefined source name. The path remains unaffected.This might be related to VSCode 1.11.1 as I only just started experiencing this problem with no change on my end.
Copied from original issue: microsoft/vscode-debugadapter-node#109
The text was updated successfully, but these errors were encountered: