Go-debug in Atom won't run Gin server?

I’m trying to get a Gin application running and attached to a debugger in Atom.

Running go run main.go or go build main.go && ./main from the command line work fine, but using go-debug in Atom refuses to do anything. Every time I try to build or run it just throws an error and exits. I really really want to get this building and running in Atom.

I started with the basics:

package main

import (


func main() {
	r := gin.Default()
	r.GET("/", func(c *gin.Context) {
		c.String(http.StatusOK, "Hello from %v", "Gin")


And output:

Starting delve with ".../Projects/go/gin/main.go" with "debug"
couldn't start listener: listen tcp bind: address already in use
delve closed with code 1

Am I missing something?

Another copy of your program is still running, what’s why it’s saying the address is already in use.

UGH so now I get to file a second bug with go-debug. It created a headless delve process and did not close it, even when Atom exited.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.