parent
0945170772
commit
3ca1dd35ca
@ -256,7 +256,9 @@ func traceCmd(cmd *cobra.Command, args []string) {
|
||||
}
|
||||
cmds := terminal.DebugCommands(client)
|
||||
cmd := cmds.Find("continue")
|
||||
err = cmd(terminal.New(client, nil), "")
|
||||
t := terminal.New(client, nil)
|
||||
defer t.Close()
|
||||
err = cmd(t, "")
|
||||
if err != nil {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
return 1
|
||||
|
||||
@ -41,9 +41,13 @@ func New(client service.Client, conf *config.Config) *Term {
|
||||
}
|
||||
}
|
||||
|
||||
func (t *Term) Close() {
|
||||
t.line.Close()
|
||||
}
|
||||
|
||||
// Run begins running dlv in the terminal.
|
||||
func (t *Term) Run() (int, error) {
|
||||
defer t.line.Close()
|
||||
defer t.Close()
|
||||
|
||||
// Send the debugger a halt command on SIGINT
|
||||
ch := make(chan os.Signal)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user