Studio supports conditional breakpoints as well as normal breakpoints. Conditional breakpoints cause a break in the execution of the program when a user-defined condition is met. For example, a normal breakpoint stops the application when the breakpoint is reached. A conditional breakpoint can be defined to stop the application only after a certain number of iterations in a recursive loop.
To define a conditional breakpoint:
From the Editing window, insert a standard breakpoint
at the appropriate point in the application code.
The breakpoint line appears highlighted.
Click Breakpoints from the Toolbar of the Debug window.
A list of breakpoints currently defined in the application is displayed.
Select the breakpoint for which you want to define a condition and right-click to open the right-click menu.
Select Edit Condition .
The Edit Condition dialog box opens.
Insert a breakpoint condition.
Click OK .
The breakpoint will now exit to the debugger only when the breakpoint condition is met.
|
|
|
|
|
Related Links: |
|
|
|