Running a Program in Debug Mode

See Also 

  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 and set the Boot Classpath.
  4. Close the Options window.
  5. In the Filesystems window, right-click the main class of your application and choose Properties.
  6. Change the Executor property to Debugger Execution.
  7. Run the class.

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

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