CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 1999
    Location
    Moscow, Russia
    Posts
    667

    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.


  2. #2
    Join Date
    Jun 1999
    Location
    S. Marino
    Posts
    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


  3. #3
    Join Date
    Jul 1999
    Location
    Moscow, Russia
    Posts
    667

    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
  •  





Click Here to Expand Forum to Full Width

Featured