VS2012 problems with debugging visualization

I use the natvis system to make it easier to debug my custom types.

I have a simple array type that I want to make extensible ...

<Type Name="Array&lt;*&gt;">
    <DisplayString>used={m_used} ptr={m_ptr}</DisplayString>
    <Expand>
        <ArrayItems>
            <Size>m_used</Size>
            <ValuePointer>m_ptr</ValuePointer>
        </ArrayItems>    
    </Expand>
</Type>

I turned on natvis parser debugging using the registry key EnableNatvisDebugger = 0x0000001

When I run the program and hover over my array in the debugger, I get the following output

.natvis(25,26): Successfully parsed expression 'm_used' in type context 'Array<int>'.
.natvis(25,32): Successfully parsed expression 'm_ptr' in type context 'Array<int>'.
.natvis(28,15): Successfully parsed expression 'm_used' in type context 'Array<int>'.
.natvis(29,23): Successfully parsed expression 'm_ptr' in type context 'Array<int>'.

Unfortunately, the visualizer only works when you hover over the elements and pin them in the code window. It does not work in any of the watch windows. Also the extension of the child also does not work.

I am launching the next version of VS2012

Microsoft Visual Studio Professional 2012
Version 11.0.61030.00 Update 4
Microsoft .NET Framework
Version 4.5.50938

I disabled Edit and Continue and disabled Managed C ++ Compatability support. I should probably mention that none of the visualizations for the STL work.

I am a little puzzled.

+4

All Articles