Why can't I debug remotely? How could I find out why?

If you cannot connect for remote debugging using a java process, how can this problem be "debugged"?
No firewall
I can connect to a remote debugger, but not always. I mean, if I connect and disconnect, it is impossible to reconnect;

Is there any way to debug this? Are there any java logs for this?

+4
source share
1 answer

Can you check the debug port that is configured on the remote computer and the one you are trying to use is the same? This may be one of the possible cases.

If you have not configured a debug port, try to configure it. Your call will always be routed through this port instead of the standard / random port handled by your server.

Here is an example of how I am doing for weblogic

set JAVA_OPTIONS=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=4529,server=y,suspend=n 
+3
source

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


All Articles