diff --git a/code/debugpanel.go b/code/debugpanel.go index 70f77e8e..d6c6653b 100644 --- a/code/debugpanel.go +++ b/code/debugpanel.go @@ -448,6 +448,9 @@ func (dv *DebugPanel) Stop() { //types:add // if !dv.DbgIsActive() || dv.DbgIsAvail() { // return // } + if dv.Dbg == nil { + return + } _, err := dv.Dbg.Stop() if err != nil { return diff --git a/code/views.go b/code/views.go index 754f018d..4c5ae593 100644 --- a/code/views.go +++ b/code/views.go @@ -190,6 +190,7 @@ func (cv *Code) DebugAttach(pid uint64) { //types:add dv.Config(cv, fileinfo.Go, exePath) cv.FocusOnPanel(TabsIndex) dv.Update() + dv.Start() cv.CurDbg = dv }