Debugging with breakpoints

To debug a program that is not a Presentation framework application, that is nonstandard, or that is uncooperative, or to step through the start of your program, set a breakpoint before you begin the debug run:

Setting a breakpoint

  1. Set a breakpoint by choosing a source file from the Files window, and by scrolling the source listing and clicking on a statement.
    Clicking on a line sets or removes a breakpoint for that line.
  2. Start to debug your application by choosing the debugger's Run button.
    This button brings up a window containing a red area. When you click in the red area, the breakpoint stops the program and brings the debugger to the foreground.
At this point you can perform single-step execution by choosing the Line Step button. Examine the values of local variables in the upper-left area of the debugger window. Double-clicking on object variables and pointers expands them to show their component values.

To continue normal program execution, choose the debugger's Run button.

To quit the program, click the program's Close box or choose the debugger's Restart button.

To quit the program debugger, choose the Exit button.

NOTE Closing the debugger window's Close box, or pressing Ctrl-C in the shell that launched the debugger, can confuse the debugger. Don't do it.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker