Sun, 02/01/2015 - 07:20
Hello,
From Visual Studio 2012, it introduced the Natvis framework. The Visual Studio Natvis framework lets you customize the way Visual Studio displays native types in debugger variable windows such as the Watch, Locals, and Data Tips windows. It supersedes the autoexp.dat file that has been used in earlier versions of Visual Studio and offers Xml syntax, better diagnostics, versioning, and multiple file support.
Component authors can use the natvis framework to create visualization rules for their types that make it easy for developers to inspect them during debugging.
I use the Natvis framework to customize the views for OpenCASCADE container classes, such as:
* TColStd_Array1OfInteger;
* TColStd_ListOfInteger;
* .etc. ;
The custom views works for TColStd_Array1OfInteger, see the attach file. but does not work on TColStd_ListOfInteger, maybe the method I used is not correct, see the natvis code below:
Anyone can help? Thanks a lot.
Best Regards,
Shing Liu
Mon, 02/02/2015 - 12:38
Dear eryar,
You can check some existing visualizers for OCCT classes in sub-folder 'dox/dev_guides/debug/occt.natvis' of OCCT folder. Please feel free to contribute your improvements!
FSR
Mon, 02/02/2015 - 15:25
Hi FSR,
I found the occt.natvis and add the TopoDS_ListOfShape, it works!
See the attach file.
Thank you very much.
Mon, 02/02/2015 - 15:26
And the occt.natvis...