Troubleshooting Debugging Port Connection Issue in IntelliJ

Original Slack Thread

Hi Team, How to enable debug option ? I have added 5001 port as per https://datahubproject.io/docs/docker/development/#debugging. Nut i’m getting this error

Error running ‘GMS Debug’: Unable to open debugger port (localhost:5001): java.net.ConnectException “Connection refused”

Hmm seems like this is more related to this thread, could you try the steps specified here? ; https://stackoverflow.com/questions/12792833/unable-to-open-debugger-port-in-intellij