Go to main content
Oracle® Developer Studio 12.6: Debugging a Program with dbx

Exit Print View

Updated: June 2017
 
 

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.