Click to See Complete Forum and Search --> : BreakPoint on Variable


Oleg Lobach
August 26th, 1999, 07:03 AM
Hi,

I want to set breakpoint on changing value of CMyClass::m_bVariable. What is the correct sequence of doing it?

I tried Edit->Breakpoints->Data, and have questions:

1. Should I use plain variable name (here m_bVariable) or full name CMyClass::m_bVariable or something also as an "expression to be evaluated"?

2.In the Edit->Breakpoints->Data->Advanced dialog box how should I enter funcion name - plain (MyFunction), full (CMyClass::MyFunction) or decorative name from *.map file?

Oleg.

Claudio Gennari
August 26th, 1999, 07:40 AM
CMyClass::m_bVariable it's a declaration and not a definition
so you have to istantiate an object of class CMyClass before testing a value

Oleg Lobach
August 26th, 1999, 07:55 AM
Hello Claudio,

Yes, I think that's right.
But how can I use this object if CMyClass is CView derived and is created at runtime by framework?
Can you give an example of solving this problem?

Thanks for interest,

Oleg