Home > Archive > VC Utilities > February 2006 > Setting Breakpoint Conditions with MS VC++ Version 7
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Setting Breakpoint Conditions with MS VC++ Version 7
|
|
| MajorSetback@excite.com 2006-02-22, 7:02 pm |
| I am using MSDE version 7.1.3088 on Windows XP.
I would like to set a condition on a break point so that it only breaks
when a condition is met. This was really straight forward and worked
fine with MSDE version 6 (but God forbid they don't mess up a good
thing).
At any rate, I try to change it by doing ctrl-B. A menu with tabs
comes up and I click on File and get
File
Line
Character
Condition
Hit Count
I click on "Condition" and set my condition with "Condition" checked
and "is true" for the radio button and click OK. My condition now
appears beside the condition button. There is a "break always" beside
the "Hit Count" button, whatever that is for. I click OK and then F5
and it breaks every time depite the fact that the condition is not met.
I then click ctrl-B again and the condition is gone.
I would be most grateful if someone could tell me how I can set the
condition for a break point with MSVC++ 7.0 like I could do quite
easily with version 6 and with every other debugger I can think of.
Many thanks in advance,
Peter.
| |
| Oleg Starodumov 2006-02-23, 7:58 am |
|
> At any rate, I try to change it by doing ctrl-B. A menu with tabs
> comes up and I click on File and get
> File
> Line
> Character
> Condition
> Hit Count
>
> I click on "Condition" and set my condition with "Condition" checked
> and "is true" for the radio button and click OK. My condition now
> appears beside the condition button. There is a "break always" beside
> the "Hit Count" button, whatever that is for. I click OK and then F5
> and it breaks every time depite the fact that the condition is not met.
It seems you are doing everything right, and I would expect it to work.
Since it does not work, I would suspect the condition. Could you please
post here the condition and the sample code of the place where you
are trying to set the breakpoint?
> I then click ctrl-B again and the condition is gone.
Find the breakpoint in Breakpoints window and do R-Click | Properties.
Is the condition still present there? If it is not, enter the condition again and
check if it works.
Regards,
Oleg
[VC++ MVP http://www.debuginfo.com/]
| |
| MajorSetback@excite.com 2006-02-24, 7:03 pm |
| Oleg Starodumov wrote:
>
> Find the breakpoint in Breakpoints window and do R-Click | Properties.
> Is the condition still present there? If it is not, enter the condition again and
> check if it works.
Hi Oleg,
Thanks very much for your reply. For some reason it seems to work
using R-Click | Properties. I don't know why the ctrl-B approach did
not work. I will try to investigate further.
Thanks again,
Peter.
|
|
|
|
|