The application prints "Listening to dt_socket transport at 5005" and does not stop

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.

+4
source share
2

suspend=y, , . . , . , suspend=y, , .

, suspend=n.

+5

"Run/Edit Configurations". : " " . "+", "Remote" . : " " "Remote". , " ". , "".

-

gradle "appStartDebug" IntelliJ IDEA. : . . : " dt_socket : 5005 " " Run". "Run/Run...", "Remote Debug", "". : " , :" localhost: 5005 ", :" socket " " Debug".

- :   , / ..

+2

Source: https://habr.com/ru/post/1648176/


All Articles