Hi,
I was trying to write my own custom view for classes from numerical library which I am currently using. That class behave similar to std::vector so I create natvis xml according to your and MSDN documentation
<?xml version=”1.0″ encoding=”utf-8″?>
<AutoVisualizer xmlns=”http://schemas.microsoft.com/vstudio/debugger/natvis/2010″>
<Type Name=”dealii::Vector<*>”>
<DisplayString>{{ size={vec_size} }}</DisplayString>
<Expand>
<Item Name=”[size]” ExcludeView=”simple”>vec_size</Item>
<Item Name=”[capacity]” ExcludeView=”simple”>max_vec_size</Item>
<ArrayItems>
<Size>vec_size</Size>
<ValuePointer>val</ValuePointer>
</ArrayItems>
</Expand>
</Type>
</AutoVisualizer>
It works fine for small amount of items. But in case of 100 000 it takes few minutes to show anything. Moreover VS is frozen during that operation. Is there any option to get only part of available items or somehow <span id=”result_box” class=”short_text” lang=”en”><span class=””>accelerate</span></span> this?