service/dap: Implement suspended breakpoints (#4075)

* service/dap: Implement suspended breakpoints

This enables support for 'suspended' breakpoints, for example for a
plugin that hasn't been loaded yet.

Fixes #4074

* Address comments

* Cleanup
This commit is contained in:
Ethan Reesor
2025-09-02 16:23:40 -05:00
committed by GitHub
parent 1c800f3b1b
commit 987e99b29d
7 changed files with 138 additions and 11 deletions

View File

@ -693,6 +693,7 @@ type GuessSubstitutePathIn struct {
type Event struct {
Kind EventKind
*BinaryInfoDownloadEventDetails
*BreakpointMaterializedEventDetails
}
type EventKind uint8
@ -701,9 +702,15 @@ const (
EventResumed EventKind = iota
EventStopped
EventBinaryInfoDownload
EventBreakpointMaterialized
)
// BinaryInfoDownloadEventDetails describes the details of a BinaryInfoDownloadEvent
type BinaryInfoDownloadEventDetails struct {
ImagePath, Progress string
}
// BreakpointMaterializedEventDetails describes the details of a BreakpointMaterializedEvent
type BreakpointMaterializedEventDetails struct {
Breakpoint *Breakpoint
}