Running a Program in Debug Mode

You can use the Debugger Executor to run an application in debug mode.

To use the debugger executor:

  1. From the main window, choose Tools and choose Options.
  2. In the Options window, expand Debugging and Executing and expand Execution Types.
  3. Select Debugger Execution.
  4. In the property sheet, open the Expert tab and set the Boot Classpath.
  5. Close the Options window.
  6. In the Explorer window, right-click the main class of your application and select Properties.
  7. In the Properties window, open the Execution tab and change the Executor property to Debugger Execution.
  8. Run the class.

    In the Output Window, you will see a message such as:

    Listening for transport dt_socket at address: 56722
    
  9. In the main window, choose Debug and choose Attach.
  10. 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.

See also
Debug Executor

Legal Notices