Go to main content
Oracle® Developer Studio 12.5: Debugging a Program with dbx

Exit Print View

Updated: June 2016

Attaching to Child Processes

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

  • When starting dbx:

    $ dbx program-name process-ID
  • From the dbx command line:

    (dbx) debug program-name process-ID

If you include a - (minus sign) rather than a program name, dbx automatically finds the executable associated with the given process ID. After using a -, a subsequent run command or rerun command does not work because dbx does not know the full path name of the executable.

You can also attach to a running child process in the Oracle Developer StudioIDE. For more information, see the online help fro the IDE and for dbxtool.