Oracle® Solaris Studio 12.4: Debugging a Program With dbx

Exit Print View

Updated: January 2015
 
 

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 Solaris Studio IDE. For more information, see the online help fro the IDE and for dbxtool.