Conditional breakpoints

来源:互联网 发布:淘宝内部优惠券52yhq 编辑:程序博客网 时间:2024/05/24 07:17

Conditional breakpoints

Once you know where an error occurs, you will want to see what the program is doing right before it crashes. One way to do this is to step through every statement in the program, one at a time, until you reach the point of concern. Sometimes it's better to just run a section of code and stop execution at that point so you can examine data at that location. It's possible to declareconditional breakpoints triggered whenever the value of an expression changes (see Figure 6). In addition, code assist is available when typing in theconditional expression.


Figure 6. Setting the conditional breakpoint trigger
Setting the conditional breakpoint trigger