Sun Studio 12: Debugging a Program With dbx

Java Mode Syntax

debug

Print the name and arguments of the program being debugged.

debug program_name [.class | .jar]

Begin debugging program_name with no process.

debug -p process_id program_name [.class | .jar]

Begin debugging program_name with process ID process_id.

debug program_name [.class | .jar] process_id

Begin debugging program_name with process ID process_id. program_name may be -; dbx finds it using /proc

debug -r

The -r option causes dbx to retain all watch commands, display commands, trace commands, when commands, andstop commands. With no -r option, an implicitdelete all command and undisplay 0 command are performed.

debug -clone ...

The -clone option causes another dbx process to begin execution, permitting debugging of more than one process at a time. Valid only if running in the Sun Studio IDE.

debug -clone

Starts another dbx process debugging nothing. Valid only if running in the Sun Studio IDE.

debug [options] -- program_name{.class | .jar}

Start debugging program_name, even if program_name begins with a dash.

where:

file_name is the name of a file.

options are the options listed inOptions.

process_id is the process ID of a running process.

program_name is the path name of the program.