还可以声明条件断点,它在表达式值发生变化时触发(请参见图6)。
It's possible to declare conditional breakpoints triggered whenever the value of an expression changes (see Figure 6).
条件中指定的变量必须在设置了断点的行中,否则表达式就没有什么意义!
The variables specified in the condition must be in scope at whatever line you set the breakpoint on, otherwise the expression wouldn't make sense!
使用' condition '命令时,如果指定断点编号但又不指定表达式,可以将断点设置成无条件断点,例如,' condition 1 '就将1号断点设置成无条件断点。
Breakpoints can be set to unconditional using the 'condition' command specifying a breakpoint number without an expression, for example 'condition 1' sets breakpoint 1 to unconditional.
应用推荐