mirror of
https://github.com/go-delve/delve.git
synced 2025-10-30 10:17:03 +08:00
stack command: -full flag prints local variables and arguments of all the functions on the stack trace
This commit is contained in:
@ -252,7 +252,7 @@ func TestFrameEvaluation(t *testing.T) {
|
||||
frames, err := p.GoroutineStacktrace(g, 10)
|
||||
assertNoError(err, t, "GoroutineStacktrace()")
|
||||
for i := range frames {
|
||||
if frames[i].Fn != nil && frames[i].Fn.Name == "main.agoroutine" {
|
||||
if frames[i].Call.Fn != nil && frames[i].Call.Fn.Name == "main.agoroutine" {
|
||||
frame = i
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user