CodeWatch provides debugging facilities, such as stepping, setting breakpoints or tracing. You can examine the source program, find specified text strings, move to specified line numbers, and examine included source files.
The CodeWatch graphical interface consists of a source window, output window, and edit-line used for command-line input, plus a set of buttons. You can enter commands either using the buttons or via the edit-line.
To see some of the CodeWatch debugging facilities:
- Click
Continue or type
C in the edit-line. It begins program execution.
- Click
Step or type
S in the edit-line. This executes the first statement.
- Type S 4 and this will execute the next 4 statements.
- Type
P 10 in the edit-line. It will print the next 10 lines in the output window.
- Type
BR 106 and this will set a breakpoint on line 106.
- Type
C and the statements until the breakpoint will be executed.
- Type
DETACH to detach from the process. CodeWatch will shut down and then pop up with
opdemo2.dll ready for debugging.
- Type
S 7 and this will execute the next 7 statements.
- Type
EVALUATE SYSPRINT_BUFF to evaluate the SYSPRINT_BUFF variable.
- You can continue stepping or if you want to stop debugging, type
DETACH.
See the
CodeWatch User's Guide for more information on debugging with CodeWatch.
Note: To stop the enterprise server, type
casstop -rPLIDEMO