title: Intellij,Gradle: Unable to open debugger port (127.0.0.1:57850): java.net.SocketException "Socket closed"
body: <p>I know this problem has been asked couple of times here in SOF and nothing worked for me probably as i am NOT using Android or NOT using remote debugging either.</p>
  
  <p>I am using Intellij 15, trying to run the cucumber tests from gradle. Although i am successful in running the tests but could not DEBUG (program is not stopping at breakpoints)  :( and hence going no where.</p>
  
  <p>it do appears the debugger creates a random port every time i ran the test and i also tried set a static value at debugger.not sure how it works!</p>
  
  <p><a href="https://i.stack.imgur.com/FjtGT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FjtGT.png" alt="enter image description here"></a></p>