Re: debugger demands more???
Do you try the menu Edit > Breakpoints and data tab?
Re: debugger demands more???
Yep, that is how I am setting the breakpoints.
In response when I start the debug session it also says that the breakpoints have been disabled.
Any ideas?
Re: debugger demands more???
Hi ahoodin,
Setting Breakpoints When Values Change may be useful for you.
Jeff
Re: debugger demands more???
Well, can't test right now with VC++ 6.0, but it works ok with VC++ 7.1.
Re: debugger demands more???
I have the MSDN. I knew that stuff 5 years ago.
Thanks. I still have the problem. Anybody?
ahoodin
Re: debugger demands more???
Quote:
Originally Posted by cilu
Well, can't test right now with VC++ 6.0, but it works ok with VC++ 7.1.
Thanks Cilu,
Will report back!
ahoodin
Re: debugger demands more???
ye there is some catch associated with it, I can not seem to remember what was it.
Re: debugger demands more???
Hmm, I can't seem to bring up the web page linked above, but you should be able to set the breakpoint. Then hit CTRL-B, to bring up the "Breakpoints" dialog. Now, highlight your breakpoint in the bottom list, and hit the "Condition" button. Enter the condition into the edit box, and hit OK.
Note that the variable in question must be in the scope of the breakpoint, otherwise you won't "break".
Viggy
Re: debugger demands more???
Quote:
Originally Posted by MrViggy
Hmm, I can't seem to bring up the web page linked above, but you should be able to set the breakpoint. Then hit CTRL-B, to bring up the "Breakpoints" dialog. Now, highlight your breakpoint in the bottom list, and hit the "Condition" button. Enter the condition into the edit box, and hit OK.
Note that the variable in question must be in the scope of the breakpoint, otherwise you won't "break".
Viggy
Good Job! This is great. Is it possible to configure the debugger to break when the value changes no matter what function call may be executing and bring up the call stack?
ahoodin
Re: debugger demands more???
Additionally when I try to break on data tab with an expression, the IDE says unable to break on pBuf[100]!=0x04.
WTH?
ahoodin
Re: debugger demands more???
Sorry, I was swamped this past week...
I've never played with this, but bring up the breakpoint properties dialog, and click on the "Data" tab. It looks like you can enter an "expression" (which I would guess, could also just be a variable) that will cause the debugger to break when the expression changes.
As for the message, is "pBuf" within the scope of the breakpoint? That should work, I've used similar expressions to break when a string is a specific value (by entering pStr[0] == 'a' && pStr[1] == 'b', etc. Annoying, but it worked).
Viggy