mirror of
https://github.com/go-delve/delve.git
synced 2025-11-01 12:01:35 +08:00
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:
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user