Skip to content

Commit

Permalink
Merge pull request #346 from cogentcore/debugstart
Browse files Browse the repository at this point in the history
actually start the debugger for debug attach
  • Loading branch information
kkoreilly authored Aug 28, 2024
2 parents 471ce31 + 8a05e23 commit 5c94b88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/debugpanel.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions code/views.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 5c94b88

Please sign in to comment.