title: Debugger port not opening
body: <p>For some reason when i run my Spring application from intellij some task is not being executed because of which my stub server responds with a error.So i tried to start it through a pre-written go script in my project and it worked.
  But now attaching debugger becomes a problem because i have started my application from terminal.</p>
  
  <p>I tried doing a remote debug by setting a remote configuration in intellij and setting  the port as 8000 but i keep getting the error "Connection refused"</p>
  
  <p>Below is the remote configuration screenshot:
  <a href="https://i.stack.imgur.com/kUG6h.png" rel="nofollow noreferrer">Remote config screenshot</a></p>
  
  <p>Is this the correct approach to attach debugger for an app started through terminal?</p>
  
  <p>Command to start in debug mode:</p>
  
  <p><code>gradle bootRun
  -Dagentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:8080</code></p>