This chapter uses the example application that was described in Chapter 2, Building a simple application in Eclipse. We will use a copy of the Run Configuration, with remote debugging services enabled.
Make sure the ActiveSpaces® Transactions Quick Start project is selected in the Package Explorer.
Under the "Run" menu, select "Run Configurations..." to display the run configuration dialog.
In the left pane of the dialog, under the Java Application type, click to select the Main configuration.
Click the "Duplicate" button to make a copy.
Name the new configuration "Debug
".
Click the Arguments tab. Add the following to the "VM arguments" field:
remotedebug=true remotedebugport=6666 suspend=true
These arguments instruct the runtime environment to listen for
remote debuggers on port 6666. The suspend
argument
instructs the runtime to pause and wait for a debugger to attach
before invoking the main
method of the
application.
Click Apply and then Close.