Dbx can be used to debug programs written in C, C++, FORTRAN, and Pascal. Dbx commands can be stored in a start-up .dbxinit file that resides in the current directory or in the user's home directory. These commands are executed just before reading the symbol table. The command-line syntax for dbx is as follows:
cmd after initialization.
Collect profile data for debugged program.
Echo input commands on standard output.
Act as if standard input is a terminal.
dir to the directory search path.
The dbx command use resets the search path.
Debug a program that puts the keyboard in up-down translation mode.
Pipe output to the debugger command via file descriptor
debugger passes this option automatically.
Suppress messages during loading (useful during auto-traceback).
objfile right away, then wait for user response
from the keyboard.
Read initialization commands from start-up
Like -s, but then delete start-up file (
Debug a currently running program whose process ID is
(used mainly for auto-traceback).
the most useful commands are
run, where, print, and stop.
Use help to summarize the available commands.
In the listing below, the term
func is used to
represent either a procedure or a function.