The Run menu consists of commands to restart the program, animate the program in slow motion, change the program's arguments, load a new program, or configure the modules CodeView is using.
The following table summarizes the commands on the Run menu:
Command | Purpose |
Restart | Restarts the program |
Set Runtime Arguments | Changes the program's run-time arguments and restarts the program |
Animate | Executes the program in slow motion |
Load | Loads a new program to debug, sets run-time arguments, and configures CodeView's modules |
The Restart command resets execution to start at the beginning of the program. After you issue the command, CodeView:
Initializes all program variables.
Resets the pass counts for all breakpoints.
Preserves existing breakpoints, watch expressions, and the program's command-line arguments.
You can use Restart any time after execution stops: at a breakpoint, while stepping or tracing, or when your program ends. If your program redefines interrupts, Restart may not work correctly because it does not execute any cleanup or exit-list code in the program. If your program requires this code to be executed, let the program run to the end before restarting, or use the Display Expression (?) command in the Command window to call the cleanup routines. For more information on calling program routines, see “Display Expression” on page 477.
The Set Runtime Arguments command lets you change your program's command-line arguments. When you set new arguments, CodeView restarts the program.
The Animate command executes your program in slow motion. CodeView highlights each statement in the Source window as your program executes. This allows you to see the flow of execution. To stop animation, press any key.
You can set the animation speed with the Trace Speed command from the Options menu or with the Trace Speed (T) Command-window command.
The Load command displays the Load dialog box, which you can use to:
Load executable (.EXE or .DLL) files.
Change the program's command-line arguments.
Specify different CodeView components from those specified in TOOLS.INI, such as a different expression evaluator or the p-code execution model.
To load program or DLL symbols into the debugger, type a filename in the File to Debug text box, or use the mouse or keyboard to select a file from the File List box. Use the Drives/Dirs list box to change to a different drive or directory.
Use the Arguments text box to change the command-line arguments to the program you are debugging or to set entirely new arguments. Type the arguments to your program as you would on the command line.
CodeView uses a default setting for an execution model, transport layer, and expression evaluator if any of these is not specified in TOOLS.INI. Click the Configure button to load different CodeView DLLs. The Configure dialog box lists the DLLs that CodeView has loaded. CodeView loads several DLLs that are required to debug your programs. These DLLs include:
Expression evaluators for various languages and environments.
Execution models for various operating systems.
Execution models for p-code.
Transport layers.
To load new DLLs, click the Change buttons on the right side of the dialog box.