Re: Setting a breakpoint on a bool

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



You need to specify:

instance_of_C[.|->]v

HTH,
Nick

"Andrew Chalk" <achalk@xxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:yH_Fe.2362$PC7.1662@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Thanks. I tried that and I think I am specifying the variable incorrectly
> as the program does not break. My variable is a private member variable in
> a class in a namespace. Viz:
>
> namespace N
> {
> class C
> {
> private:
> variable v;
>
> };
> }
>
> If I just specify 'v' the program does not stop. How should I specify it?
>
> Many thanks.
>
> "Scot T Brennecke" <ScotB@xxxxxxxxxxxxxxxxxx> wrote in message
> news:eCgRJ7xkFHA.3448@xxxxxxxxxxxxxxxxxxxxxxx
>> Go to the "Data" tab from the Debug | New Breakpoint menu and specify the
>> name of the bool variable, indicating that you want to break whenever the
>> variable value changes.
>>
>> "Andrew Chalk" <achalk@xxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:ebJkj8kkFHA.3580@xxxxxxxxxxxxxxxxxxxxxxx
>>>I have a bool private member and want to set a breakpoint when it changes
>>>from true to false. In the breakpoints window in VS2003 how do I specify
>>>the condition?
>>>
>>> Many thanks
>>>
>>>
>>
>>
>
>


.



Relevant Pages

  • Re: Setting a breakpoint on a bool
    ... If I just specify 'v' the program does not stop. ... >>I have a bool private member and want to set a breakpoint when it changes ...
    (microsoft.public.vc.debugger)
  • Setting a breakpoint on a bool
    ... I have a bool private member and want to set a breakpoint when it changes ... In the breakpoints window in VS2003 how do I specify the ... Prev by Date: ...
    (microsoft.public.vc.debugger)