Search code examples
c++visual-studiodebuggingvtable

Utilizing the virtual pointer table address seen in Visual Studio debugger


Many a times in Visual Studio for C++ we get the vfptr or the vptr address of a class visible in the debugger. In Visual Studio we can also analyze memory of the thread through the in built memory views. But the information visible there is in binary.

Is there some way I can get more information about the class type or any other useful information through the virtual pointer address for debugging purposes?(Considering the fact that we can analyze the memory itself through this address in Visual Studio)


Solution

  • If you expand the class in QuickWatch or Variables window , you can see class details in ascii like so.

    enter image description here

    Here you can see that the class is of type Foo and has a virtual table with one function called bar