http:ListenAndServe() not listening in GoLand w/Debugger
I am starting my first Go app using GoLand. I have used PhpStorm since it was in beta so am familiar with JetBrains IDEs.
I am trying to build a simple HTTP server using the code from this article and I have it working when I run the app from the terminal command line:
https://www.codementor.io/anshulsanghi/so-you-wanna-start-developing-web-apps-with-go-huh-handle-handler-handlefunc-eziu2go2t
However when I run from within GoLand it immediately exists after calling http.ListenAndServe(). What do I need to do to get it to stop and listen to allow me to debug the request handler?
Please sign in to leave a comment.
As soon as I asked I found my own answer. Seems that the app was running in the background and blocking access to the port.