Previous Topic Next topic Print topic


Debug Using CodeWatch

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:
  1. Click Continue or type C in the edit-line. It begins program execution.
  2. Click Step or type S in the edit-line. This executes the first statement.
  3. Type S 4 and this will execute the next 4 statements.
  4. Type P 10 in the edit-line. It will print the next 10 lines in the output window.
  5. Type BR 106 and this will set a breakpoint on line 106.
  6. Type C and the statements until the breakpoint will be executed.
  7. Type DETACH to detach from the process. CodeWatch will shut down and then pop up with opdemo2.dll ready for debugging.
  8. Type S 7 and this will execute the next 7 statements.
  9. Type EVALUATE SYSPRINT_BUFF to evaluate the SYSPRINT_BUFF variable.
  10. 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
Previous Topic Next topic Print topic