Sun Studio 12: Debugging a Program With dbx

Java Mode Syntax

dbx options program_name{.class | .jar}

Debug program_name.

dbx options program_name{.class | .jar} process_id

Debug program_name with process ID process_id.

dbx options - process_id

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

dbx options -r program_name{.class | .jar} 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 (not to the JVM software).

options are the options listed in Options.