Skip Navigation Links | |
Exit Print View | |
Oracle Solaris Studio 12.3: Debugging a Program With dbx Oracle Solaris Studio 12.3 Information Library |
4. Viewing and Navigating To Code
5. Controlling Program Execution
6. Setting Breakpoints and Traces
8. Evaluating and Displaying Data
11. Debugging Multithreaded Applications
16. Debugging Fortran Using dbx
17. Debugging a Java Application With dbx
18. Debugging at the Machine-Instruction Level
19. Using dbx With the Korn Shell
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
You can substitute program_name with the name - (minus sign), so that dbx automatically finds the executable associated with the given process ID (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 (see “Attaching the Debugger to a Running Process” in the IDE online help) or dbxtool (see “Attaching dbxtool to a Running Process” in the dbxtool online help).