Search code examples
javaeclipseremote-debugging

Remote Debugging Java application not show variable values


I have a .java file which I deploy to a server and debug it through my local eclipse . I have started application by command

java -Xdebug -Xrunjdwp:transport=dt_socket,address=8998,server=y TestRemoteDebug

I have created proper debug configuration in eclipse too .

Now when i start application I can see that it hits breakpoints but I cant see any of variable values in Variable pane or by hovering over variable as it works in local machine .

Any help appreciated .


Solution

  • Compiling the java file with javac -g fixed this .