I start the code execution with typical arguments:
java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 myPackage.myMainClassname
Launching the application, printing "Listening to dt_socket transport at: 5005" and ... goes on! Without any attempt to wait for the connection. I CAN connect to it at runtime, and debugging itself works. But why does the application not wait for a connection from the debugger?
Something seems to be broken in my configuration, but I can’t understand the reason. I tried several ways to specify debugging options, different ports, run as an administrator, disable firewalls - nothing helps.
source
share