Attach Dialog Box

See Also

The Attach dialog box enables you to connect the debugger to an application running on another virtual machine. You open this dialog box by choosing Debug and choosing Start Session and choosing Attach.

When you attach the debugger to a virtual machine, you will see threads as if you were debugging locally. If you have source code for the debugged application and you set a breakpoint in the code, the Source Editor will open with the breakpoint line highlighted.

The first item in the Attach dialog box is the Debugger combo box. The IDE supports the JPDA debugger implementation.

The remainder of the items in the Attach dialog box depend on the debugger implementation and transport implementation you are using. Full documentation of the shared memory and socket transports is available at http://java.sun.com/products/jpda/doc/conninv.html.

JPDA on a Platform That Supports dt_socket

The JPDA reference implementation provides a socket transport on both Solaris environments and Microsoft Windows systems. The Attach dialog box prompts you for the following information:

JPDA on a Platform That Supports dt_shmem

The JPDA reference implementation provides a shared memory transport on the Microsoft Windows system only. The Attach dialog box prompts you for the following information:

Tip If you are working on a Microsoft Windows system and the shared memory connector is not available, try including the following startup parameter your IDE-home/bin/ide.cfg file:

-J-Dnetbeans.debugger.jpda.transport=dt_shmem

This parameter forces the IDE to use the shared memory connection when starting a debugging session with the Debug and choose Start Session and choose Run in Debugger command. This parameter has no effect when you attach the debugger to an already running process.

See Also
Attaching the Debugger to a Running Process

Legal Notices