我从这里得到了EASTL - https://github.com/paulhodge/EASTL
为了进行调试,我正在编写自定义可视化工具 VS2012/2013。
"eastl::vector"工作正常,但"eastl::map"不能。
这是我的代码
<Type Name="eastl::map<*>">
<DisplayString>{{size = {mnSize}}}</DisplayString>
<Expand>
<Item Name="[size]">mnSize</Item>
<Item Name="[comp]">mCompare</Item>
<TreeItems>
<Size>mnSize</Size>
<HeadPointer>mAnchor.mpNodeParent</HeadPointer>
<LeftPointer>mpNodeLeft</LeftPointer>
<RightPointer>mpNodeRight</RightPointer>
<ValueNode>(node_type*)this->mValue</ValueNode>
</TreeItems>
</Expand>
</Type>
看起来VS无法识别"node_type"
感谢您的回复。
我对 EASTL 也有同样的问题。
原来我使用的是旧版本的EASTL.natvis
.这个对我有用:https://github.com/electronicarts/EASTL/blob/master/doc/EASTL.natvis
您必须替换的文件位于:
%userprofile%DocumentsVisual Studio 2015Visualizers
(只需将 2015 更改为您正在使用的任何版本的 VS)