How to hit conditional breakpoint on the second pass?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to hit conditional breakpoint on the second pass?

2,580 次查看
anaseem
Contributor IV

My embedded software is based on Arm Cortex M0+ LPC11E68JBD48E Microcontroller.  Language is C / C++. 

I'm able to hit breakpoint when the value of my local variable is 26.  I need to hit breakpoint after this condition is met and breaking instruction has been skipped a certain number of times.

In "Properties for C / C++ Line Breakpoint" window, there is 'Ignore count' field (see attached).  Is the purpose of this field to specify how many iterations to skip before hitting the breakpoint?  I entered numbers like 2 or 3 but breakpoint was hit the first time?

标签 (1)
标记 (1)
0 项奖励
回复
1 回复

2,503 次查看
anaseem
Contributor IV

Never mind!  Ignore_Count field of Breakpoint Properties is working correctly.  The problem was that I didn't specify Breakpoint condition properly.  I used Equals(=) which was assigning value to conditional variable when breakpoint instruction was reached.  Instead Equality Operator(==) needs to be specified in the Breakpoint condition field.