mirror of
https://github.com/go-delve/delve.git
synced 2025-10-29 01:27:16 +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:
@ -127,7 +127,7 @@ type CommandOut struct {
|
||||
|
||||
// Command interrupts, continues and steps through the program.
|
||||
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())
|
||||
if err != nil {
|
||||
cb.Return(nil, err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user