Sun Studio 12 Update 1: Debugging a Program With dbx

run Command

The run command runs the program with arguments.

Use Control-C to stop executing the program.

Native Mode Syntax

run

Begin executing the program with the current arguments.

run arguments

Begin executing the program with new arguments.

run ... >|>> output_file

Set the output redirection.

run ... < input_file

Set the input redirection.

where:

arguments are the arguments to be used in running the target process.

input_file is the file name of the file from which input is to be redirected.

output_file is the file name of the file to which output is to be redirected.


Note –

There is currently no way to redirect stderr using the run or runargs command.


Java Mode Syntax

run

Begin executing the program with the current arguments.

run arguments

Begin executing the program with new arguments.

where:

arguments are the arguments to be used in running the target process. They are passed to the Java application, not to the JVM software. Do not include the main class name as an argument.

You cannot redirect the input or output of a Java application with the run command.

Breakpoints you set in one run persist in subsequent runs.