Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

When hitting Stop during Debug, it does not always kill debug process #438

@intdel

Description

@intdel

I am running a web server in Go (1.6) with visual studio code and the most recent plugin:

func main() {

    http.HandleFunc("/data", htmlHandler)

    err := http.ListenAndServe(":8080", nil)
    if err != nil {
        log.Fatal(err)
    }
    os.Exit(0)
}

When I hit the stop button on the small debug window, it does not kill the webserver, because after I hit F5 again I get:

2016/08/16 15:34:13 server.go:71: Using API v1
2016/08/16 15:34:13 debugger.go:61: launching process with args: [./debug]
API server listening at: 127.0.0.1:2345
2016/08/16 15:34:13 debugger.go:393: continuing
2016/08/16 15:34:13 listen tcp :8080: bind: address already in use

So I will have to look manually for the PID and kill it. Then it works again.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions