title: Java remote debugging not working with Eclipse or IntelliJ . Help needed
body: <p>I have a very simple project here <a href="https://github.com/sherry-ummen/javadebuggingnotworking" rel="nofollow noreferrer">https://github.com/sherry-ummen/javadebuggingnotworking</a></p>
  
  <p>I am trying to get remote debugging working because I need it to do it for a similar case so I thought of trying it out with a simple one.</p>
  
  <p>I have put a break point at line 12. Did maven build to create the jar and also set the remote debugging configuration to this <a href="https://i.stack.imgur.com/qSBQL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qSBQL.png" alt="enter image description here"></a><br>
  And to start debugging I used the following command</p>
  
  <p><strong>java -Xdebug -Xrunjdwp:transport=dt_socket,address=8998,server=y -jar my-debug-test-0.0.1-SNAPSHOT.jar</strong></p>
  
  <p>Now when the process is listening , I go to IntelliJ and press remote debugging configuration then I get the following message on the Intellij output window without hitting the breakpoint.</p>
  
  <p><strong>Connected to the target VM, address: 'localhost:8998', transport: 'socket'</strong></p>
  
  <p><strong>Disconnected from the target VM, address: 'localhost:8998', transport: 'socket'</strong></p>
  
  <p>And also in the console window where I started the java process gets stopped with the following message</p>
  
  <pre><code>C:\Users\sherry.ummen\eclipse-workspace\my-debug-test\target&gt;java -Xdebug -
  Xrunjdwp:transport=dt_socket,address=8998,server=y -jar my-debug-test-0.0.1-
  SNAPSHOT.jar
  Listening for transport dt_socket at address: 8998
  no main manifest attribute, in my-debug-test-0.0.1-SNAPSHOT.jar
  </code></pre>
  
  <p>Now, I really do not understand why it behaves this way and I do not see my breakpoint hitting. It might be a very stupid question but I have very limited Java development skills so for me it's a headache.</p>