Re: [boost] [optional] Making optional more debugger friendly

boost-request@lists.boost.org wrote:
Message: 12 Date: Wed, 23 May 2007 16:39:56 -0700 From: "Jeffrey Faust" <jefffaust@verizon.net> Subject: Re: [boost] [optional] Making optional more debugger friendly To: boost@lists.boost.org Message-ID: <op.tssz0uxy5emtmi@goliath> Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15
David Deakins wrote:
Hi Jeff,
We have a handful of VS2005 visualizers for boost types. Here's what we use for boost::optional. Try plugging this into the [Visualizers] section of your autoexp.dat and see if it is the kind of thing you are looking for:
boost::optional<*>{ preview ( #if( !$c.m_initialized ) ( #( "Uninitialized" ) ) #else ( #( *($T1*)&$c.m_storage.dummy_.data[0] ) ) ) }
Dave, you have made my day. This is exactly what I need. It works perfectly!
Now, how do people feel about an update to the documentation with this debugger-specific nugget? Do other debuggers have similar facilities?
Jeff
GDB has custom script support. On that note, anyone have a tip for how to (even manually) inspect in GDB? The version I am running (6.3.0.0) dumps internal core when I try to even print a boost::optional, let alone give readable output. Best Regards, Matthew Herrmann
participants (1)
-
Matthew Herrmann