ILE C/C++ Programmer's Guide

Setting Conditional Breakpoints for a Statement

You can set a conditional breakpoint to a statement. For example, if you have a compiler listing that contains line numbers and statement numbers, you can use the statement syntax to set a breakpoint on a specific statement when there are several statements on a single line.


Line Stmt Source
33 24 i=j; j=0;
34 26 array[i] = cost;

Break myfunction/25 sets a breakpoint on the statement j=0 assuming this is in myfunction. If you then enter Break 33, a breakpoint is set at statement 24, i=j.

To set a breakpoint on the first statement of a multi-statement macro, position the cursor on the line containing the macro invocation, not the macro expansion.


[ Top of Page | Previous Page | Next Page | Table of Contents ]