Debugging a Program With dbx

Attaching to Child Processes

You can attach to a running child in one of the following ways.

When starting dbx:


$ dbx progname
 pid

From the command line:


(dbx) debug progname
 pid

You can substitute progname with the name - (minus sign), so dbx finds the executable associated with the given process id (pid). After using a -, a subsequent run or rerun will not work because dbx does not know the full path name of the executable.