The basic syntax of the dbx command to start dbx is:
dbx [options] [program-name|-] [process-ID]
To start a dbx session and load the program test to be debugged:
% dbx test
To start a dbx session and attach it to a program that is already running with the process ID 832:
% dbx - 832
When your dbx session starts, dbx loads the program information for the program you are debugging. Then dbx waits in a ready state visiting the main block of the program such as the main() function in a C or C++ program. The (dbx) command prompt is displayed.
You can type commands at the (dbx) prompt. Typically, you first set a breakpoint by typing a command such as stop in main and then type a run command to run your program:
(dbx) stop in main (4) stop in main (dbx) run Running: quote_1 (process id 5685) (dbx)
When execution stops at the breakpoint, you can type commands such as step and next to single-step through your code, and print and display to evaluate expressions and variables.
For information about the command-line options for the dbx utility, see the dbx(1) man page.
For complete information about using dbx including a command reference section, see Oracle Solaris Studio 12.4: Debugging a Program With dbx . You can also learn about the dbx commands and other topics by typing help at the (dbx) command line.
For a list of the new and changed features, see What’s New in Oracle Solaris Studio 12.4 .
For known problems, limitations, and incompatibilities in the current release of dbx, see Oracle Solaris Studio 12.4: Release Notes .