mirror of
https://github.com/go-delve/delve.git
synced 2025-10-29 01:27:16 +08:00
proc,service,terminal: eval expressions in the scope of a deferred call
Add ability to evaluate variables on the scope of a deferred call's argument frame.
This commit is contained in:
@ -324,8 +324,9 @@ type BreakpointInfo struct {
|
||||
// EvalScope is the scope a command should
|
||||
// be evaluated in. Describes the goroutine and frame number.
|
||||
type EvalScope struct {
|
||||
GoroutineID int
|
||||
Frame int
|
||||
GoroutineID int
|
||||
Frame int
|
||||
DeferredCall int // when DeferredCall is n > 0 this eval scope is relative to the n-th deferred call in the current frame
|
||||
}
|
||||
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user