Remote debugging environments have become the industry standard for debugging server-side software, and are widely available. The instructions below are for Java's jdb debugger, but will give you a good idea of how to debug your Droplets regardless of which remote debugger you use.
- jdk1.3\bin\jdwp.dll must be in your PATH
- jdk1.3\bin\jdwp.dll must be in your PATH
Make sure your Droplet has been compiled using the -g option of javac. This will allow you to print local variables while debugging.
In your registry, under HKEY_LOCAL_MACHINE/SOFTWARE/Droplet/DropletServer/Java, edit the jvm-options key as follows:
-Xdebug
-Xrunjdwp:transport=dt_socket,
server=y,suspend=y,address=5150
-Xbootclasspath:c:/jdk1.3/jre/lib/
rt.jar;c:/jdk1.3/lib/tools.jar
-Xnoagent
-Djava.compiler=NONE
Now start the Droplets Server console (DropletConsole.exe).
Now you're ready to debug. You can now specify debugger commands to set breakpoints, etc.
|