When you first load a program into dbx, dbx navigates to the program’s “main” block (main for C, C++, and Fortran 90; MAIN for Fortran 77; the main class for Java code). dbx waits for you to issue further commands, by navigating through code or using event management commands.
You can set breakpoints in the program before running it.
Use the run command to start program execution.
You can optionally add command-line arguments and redirection of input and output, using < for input and > or >> for output. Using >> will append contents to the existing output file.
(dbx) run [arguments][ < input-file] [ > output-file]
The run command without arguments restarts the program using the previous arguments and redirection. The rerun command restarts the program and clears the original arguments and redirection.