Sun Studio 12: Debugging a Program With dbx

Native Mode Syntax

dbx options program_name

Debug program_name.

dbx options program_name core

Debug program_name with corefile core.

dbx options program_name process_id

Debug program_name with process ID process_id.

dbx options - process_id

Debug process ID process_id; dbx finds the program via /proc.

dbx options - core

Debug using corefile core; see also debug Command.

dbx options -r program_name arguments

Run program_name with arguments arguments; if abnormal termination, start debugging program_name, else just exit.

where:

program_name is the name of the program to be debugged.

process_id is the process ID of a running process.

arguments are the arguments to be passed to the program.

options are the options listed in Options.