|
-
August 26th, 1999, 07:03 AM
#1
BreakPoint on Variable
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.
-
August 26th, 1999, 07:40 AM
#2
Re: BreakPoint on Variable
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
-
August 26th, 1999, 07:55 AM
#3
Re: BreakPoint on Variable
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|