You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many debug adapters already support a stopOnEntry property that's part of the launch request to control if it should stop immediately. Couldn't this pattern be used for attach too?
I think the attach stop reason can be useful on its own. For example, when a debugger doesn't allow to configure the stopOnEntry behavior, it can still report the stop after attach.
In my opinion it would be great to have both stopOnEntry and attach stop reason in the spec to simplify coordination between clients and servers.
We have the stop reason entry which is intended to be used for this purpose.
It would be great if the meaning of these values was spelled out in the spec. I didn't know what this one meant when writing the gdb DAP implementation so I just ignored it...
Can stopOnEntry get an official description in the spec?
stopOnEntry is a common configuration value of various debug adapters, but this configuration is not in-scope for DAP.
It would be great if the meaning of these values was spelled out in the spec. I didn't know what this one meant when writing the gdb DAP implementation so I just ignored it...
Activity
mfussenegger commentedon Oct 17, 2025
Many debug adapters already support a
stopOnEntryproperty that's part of the launch request to control if it should stop immediately. Couldn't this pattern be used forattachtoo?nd-work commentedon Oct 17, 2025
Oh, I didn't know about
stopOnEntry.I think the
attachstop reason can be useful on its own. For example, when a debugger doesn't allow to configure thestopOnEntrybehavior, it can still report the stop after attach.In my opinion it would be great to have both
stopOnEntryandattachstop reason in the spec to simplify coordination between clients and servers.connor4312 commentedon Oct 17, 2025
We have the stop reason
entrywhich is intended to be used for this purpose.nd-work commentedon Oct 17, 2025
Can
stopOnEntryget an official description in the spec?I believe debuggers will have more incentives to support it.
tromey commentedon Oct 17, 2025
It would be great if the meaning of these values was spelled out in the spec. I didn't know what this one meant when writing the gdb DAP implementation so I just ignored it...
connor4312 commentedon Oct 17, 2025
stopOnEntry is a common configuration value of various debug adapters, but this configuration is not in-scope for DAP.
👍