Loading

Pages

Friday, July 11, 2008

Debugging applets from eclipse

Here is how to debug the applet from eclipse.
First configure the jdk plugin for debugging
1)From settings/Control Panel select Java-Plugin(Java-plugin control panel)
2)In the advanced tab under java Runtime Parameters
paste the following line Djava.compiler=NONE -Xnoagent -Xdebug - Xrunjdwp:transport=dt_socket,address=9999,server=y,suspend=n address can be any valid port .
Now in eclipse select debug from the run menu.
1)Create a debug configuration for applet under Remote Java Application
2)Specify host and port(port is same as the value of address in the java-plugin configuration.
3)To allow termination of debug session from eclipse,check the allow termination of remote vm.
Now load the applet in the browser first.Then from eclipse start the debug session.

1 comment:

alex said...

I am stuck at step 1 of the second part. When I click on debug, I have the choice between 2 options: Ant build and Ant build, both of them give me an error message: "unable to find an Ant file to run"