visual studio 2012 - NatVis: typedefs allowed? -


i have type defined as:

typedef unsigned short stringchecksum; 

which intend use natvis display corresponding value in global string table have loaded in memory.

so i've defined new natvis testing(which first time):

<?xml version="1.0" encoding="utf-8" ?> <autovisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">   <type name="stringchecksum">     <displaystring>stringchecksum {this}</displaystring>   </type> </autovisualizer> 

i've turned on natvis debugging in registry , can see .natvis file being loaded debugger , parsed successfully.

i have edit , continue turned off.

however when debug code , examine stringchecksum, don't see difference, shows integer. expected show "stringchecksum 3433".

is possible natvis work types defined plain typedef? of examples i've seen using classes. , if idea might wrong?

and answer no. debugger cannot tell difference original type.

interestingly, enums , typed enums not work in vs2012 update 2 either though debugger can in fact tell difference.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -