0

I need to debug some parts of a quite complex application based on Qt (QGis), and I've used VS 2008 C++ Express to build it with debug informations (removing optimization with /Od). I can inspect simple type variables (like int, string, etc.), but I cannot evaluate instance methods, because it throws errors saying that the method doesn't exist, etc. (CXX0052 errcode).

Do I have to compile in debug mode to have a deeper insight available? Is the expression evaluator supposed to let me inspect instance methods? Or, is VS Express debugger more limited then the complete VS?

0

1 Answer 1

0

You can get errors like this if your method is defined inline or if your method is in another assembly. I have found that if the method is not inline and in the same assembly I can always evaluate like this in the immediate window:

?myObject.myFunc()

You might find this thread useful: Why do I get a "member function not present" error when evaluting expressions on the VC++ debugger?

2
  • Thanks Graeme. Very useful informations. Where did you find the use of "?". I didn't hit in reading the (spread) Windows documentation
    – giohappy
    Apr 22, 2012 at 11:00
  • I didn't get it from any documentation, I just saw a coworker do it once. There's no better way to learn than to stare over another programmer's shoulder :) May 3, 2012 at 20:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.