Running a Program in Debug Mode
You can use the Debugger Executor to run an application in debug
mode.
To use the debugger executor:
- From the main window, choose Tools
Options.
- In the Options window, expand Debugging and Executing
Execution Types.
- Select Debugger Execution.
- In the property sheet, open the Expert tab and set the
Boot Classpath.
- Close the Options window.
- In the Explorer window, right-click the main class of your application and select Properties.
- In the Properties window, open the Execution tab
and change the Executor property to Debugger Execution.
- Run the class.
In the Output Window, you will see a message such as:
Listening for transport dt_socket at address: 56722
- In the main window, choose Debug
Attach.
- In the Attach to VM dialog box, select a debugger type.
The remainder of the items in this dialog box depend on the debugger
implementation and transport implementation you are using. See Attach to VM Dialog Box for descriptions of the fields
in the Attach to VM dialog box.
Legal Notices