Changes between Version 8 and Version 9 of DebuggerVisualizers


Ignore:
Timestamp:
Aug 6, 2007, 2:16:34 PM (15 years ago)
Author:
fkonvick
Comment:

Minor corrections & links

Legend:

Unmodified
Added
Removed
Modified
  • DebuggerVisualizers

    v8 v9  
    4242
    4343Though each debugger UI usually tries to display the data as nicely as possible,
    44 with complex types such as those of BOOST, the general approach usually does not allow the user
     44with complex types such as those of Boost, the general approach usually does not allow the user
    4545to quickly get the information she needs.
    4646That's where debugger visualizers come to help: they are user- or library vendor-defined formatting rules
     
    5151== Visual Studio 2005 ==
    5252
    53 [http://msdn2.microsoft.com/en-us/vstudio/default.aspx Microsoft Visual Studio 2005] is the first of the Visual Studio versions to support user-customizable debugger visualizers. For CLR languages, such as C#, the possibilities are even more powerful, and documented. Native C++ debugger visualizers are not documented, though it was claimed by some people from Microsoft that some docs are coming - so if you know of some, please let us know!
     53[http://msdn2.microsoft.com/en-us/vstudio/default.aspx Microsoft Visual Studio 2005] is the first of the Visual Studio versions to support user-customizable debugger visualizers. For CLR languages, such as C#, the possibilities are even more powerful, and documented. Native C++ debugger visualizers are not documented, though it was claimed by some people from Microsoft that some docs are coming - so if you know of some, please [wiki:DebuggerVisualizers#Activedevelopers let us know]!
    5454
    5555=== Native C++ Debugger Visualizers for MSVS 2005 ===
     
    6767Visualizers for {{{boost::multi_index_container}}} stored at http://svn.boost.org/svn/boost/sandbox/boost_docs/sandbox
    6868
    69 Other existing visualizers will be added shortly. If you're lacking a visualizer for your favorite type, let us know or write one yourself - it's easy!
     69Other existing visualizers will be added shortly. If you're lacking a visualizer for your favorite type,
     70[wiki:DebuggerVisualizers#Activedevelopers let us know] or write one yourself - it's easy!
    7071
    7172=== HOWTO ===
    7273
    73 Our main source of knowledge is the [http://www.virtualdub.org/blog/pivot/entry.php?id=120 blog at virtualdub.org]. I'll try to repeat some of the basic info you need to get started.
     74Our main source of knowledge is the [http://www.virtualdub.org/blog/pivot/entry.php?id=120 blog at virtualdub.org]
     75and the experience that we gained doing our own visualizers for Boost.
     76I'll try to summarize our current knowledge here.
    7477
    7578Visualizers (visualizer '''rules''') have this general format:
     
    218221but recursive depth-first. {{{skip_expr}}} is used to tell the shape of the tree (usually {{{skip: 0}}}).
    219222
    220 ===== conditionals =====
    221 
    222 There is a {{{#if (expr) ( then_expr ) #else ( else_expr )}}} construct (with the ___else___ part optional)
     223===== Conditionals =====
     224
     225There is a {{{#if (expr) ( then_expr ) #elif ( elif_expr ) ... #else ( else_expr )}}} construct (with the {{{#else}}} parts optional)
    223226and a {{{#switch(switch_expr) #case case0_value ( case0_expr ) ... #default ( default_expr ) #except ( except_expr ) )}}}
    224227construct that can be used in the expressions. My guess (haven't tried) is that values matching {{{except_expr}}}