Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Commit

Permalink
Add terminate command
Browse files Browse the repository at this point in the history
It will try to resume the exec, and then disconnect from the ws.
  • Loading branch information
ankur22 committed Dec 5, 2024
1 parent 1be2a21 commit 4dede59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions browser/breakpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ func (bc *breakpointClient) listen() {
case "step_over":
bc.registry.setStepOverMode(true)
bc.registry.resume(false)
case "terminate":
log.Print("terminated")
bc.registry.resume(false)
bc.close()
default:
log.Printf("breakpointClient: unknown command: %s", envelope.Command)
}
Expand Down

0 comments on commit 4dede59

Please sign in to comment.