diff --git a/cmd/dlv/cmds/commands.go b/cmd/dlv/cmds/commands.go index c7dee2b2..845587c6 100644 --- a/cmd/dlv/cmds/commands.go +++ b/cmd/dlv/cmds/commands.go @@ -353,7 +353,6 @@ func execute(attachPid int, processArgs []string, conf *config.Config) int { Stop(bool) error } - if !Headless { ApiVersion = 2 } @@ -386,6 +385,8 @@ func execute(attachPid int, processArgs []string, conf *config.Config) int { var status int if Headless { + // Print listener address + fmt.Printf("API server listening at: %s\n", listener.Addr()) ch := make(chan os.Signal) signal.Notify(ch, syscall.SIGINT) <-ch