This chapter tells you how to control process execution in CASEVision. It includes the following topics:
Process execution is controlled using the top portion of the Main View window. See Figure 5-1.
The Main View window contains a row of execution control buttons that enable you to control program execution. The execution control buttons are located above the source display area. To use any of these commands, click on the appropriate button with the left mouse button. The Main View control panel is described below.
The panel contains the following fields:
The execution control buttons enable you to control program execution. The two control buttons for starting and terminating a process are:
Run | Creates a new process for the program and starts execution. It is also used to rerun the program. | |
Kill | Kills the active process. |
The control buttons used for process interruptions are
Continue | Resumes program execution after a halt and continues until a breakpoint or other event stops execution. | |
Stop | Stops execution of the program. When program execution stops, the current source line is highlighted in the Main View and annotated with an arrow indicating the program counter (PC). | |
Step Into | Steps to the next source line and into function calls. To step a specific number of lines, hold down the right mouse button over the Step Into button. This displays the popup menu shown in Figure 5-2. You can select one of the fixed values or enter your own number of steps by selecting "N...". Selecting "N..." displays the dialog box shown at the right in Figure 5-2. | |
Step Over | Steps to the next source line and over function calls. To step a specific number of lines, hold down the right mouse button over the Step Over button. This displays the popup menu shown in Figure 5-3. You can select one of the fixed values or enter your own number of steps by selecting "N...". Selecting "N..." displays the dialog box shown at the right in Figure 5-3. | |
Return | Executes the remaining instructions in the current function. Program execution stops upon return from that procedure. |
There is one button in the control panel for spontaneous sampling:
The PC (program counter) menu in Main View provides a quick and informal means of controlling process execution. See Figure 5-4.
The Execution View window is a simple shell that lets you set environment variables and inspect error messages. Your target program I/O, if any, is displayed in the Execution View window. If the program is I/O-based, then all interaction takes place in Execution View.
Note: When you launch the debugger, the Execution View is launched in iconified form. |