attach Command

Related Topics:

Attaching to a Running Process

The attach command attaches dbx to a running process, stopping execution and putting the program under debugging control.

Syntax
attach pid Begin debugging the program with process ID pid. dbx finds the program using /proc.
attach -p pid program Begin debugging program with process ID pid.
attach program pid Begin debugging program with process ID pid. program may be -; dbx finds it using /proc.
attach -r ... The -r option causes dbx to retain all display, trace, when, and stop commands. With no -r option, an implicit delete all and undisplay 0 are performed.

where:

pid is the process ID of a running process.

program is the path name of the running program.