Visualize Whirled Peas


The implementation guts of STL containers can make debugging even your typical std::vector an exercise in frustration, not to mention debugging the implementation guts of your own complex objects or objects from third party libraries. Fortunately, to make debugging easier, Visual Studio is able to display STL objects in a human readable format. That means you can avoid useless debugging views like this:

and instead have meaningful displays like this:

What’s great about this technology is that you can customize it yourself. Not only can you tweak the views for STL containers, you can write your own visualizers for the objects you care about.

Stephan T. Lavavej, a Visual C++ Libraries developer, revealed the visualizer secrets recently. You can download the details from his PowerPoint presentation or watch the presentation Stephan gave at BoostCon.



Happy (and more efficient) debugging!

Advertisements
This entry was posted in C++, Game Programming. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s