mirror of
https://github.com/go-delve/delve.git
synced 2025-11-03 22:08:33 +08:00
cmd/dlv: print out message with stack trace when breakpoint is hit but has no waiting client (#3632)
* Print out message and dump stack on pause * Fix test * Move the logic to debugger layer * Remove unused fields * Do not use defer to get state * move channel to connection * remove lock on isClosed * Use mutex * Remove unwanted changes
This commit is contained in:
@ -56,7 +56,7 @@ func (s *RPCServer) State(arg interface{}, state *api.DebuggerState) error {
|
||||
}
|
||||
|
||||
func (s *RPCServer) Command(command *api.DebuggerCommand, cb service.RPCCallback) {
|
||||
st, err := s.debugger.Command(command, cb.SetupDoneChan())
|
||||
st, err := s.debugger.Command(command, cb.SetupDoneChan(), cb.DisconnectChan())
|
||||
cb.Return(st, err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user