How to use the Java remote debugger in Eclipse

Submitted by: Chris Nitchie (PTC) Last Updated: 2006-08-03

How to use "remote debugging" in Eclipse with your Arbortext Java code

To debug Arbortext-resident Java code using Eclipse, place the following line of code in an ACL script in custom\init:

set javadebugport=5555;

You need to make sure this line executes before Arbortext's JVM is initialized. To verify that the option has indeed been set, write this on the command line:

eval option(javadebugport);

To connect to Arbortext from Eclipse, in Eclipse go to Run->Debug. Under the "Remote Java Application" section, click "New". Under the "Connection Properties" section, set the port you used for javadebugport. Click Debug. You should now be able to set breakpoints and do other debugging tasks.

=Karl Johan Kleist=

> "before Arbortext's JVM is initialized"

I have found that a suitable place to set this option is in "...\application\x.y.z\init\init.acl"