MPFR C++ Debugger Visualizer in Visual Studio

Built-in debugger in Visual Studio has very nice extension capabilities. One particularly useful feature – developer can create custom visualizers for his own complex data types. Usually interactive debugger just shows data members of user-defined (and unknown to him) classes and structures, e.g.:

Obviously this is not very handy. In example above mpreal is arbitrary precision floating-point numeric type. It is only natural to show variables of the type as numbers, not as collection of low-level data pointers and properties.

Alexei Zubanov came up with neat idea on how to marry debugger with mpreal numbers in simplest way possible. As a result of our joint efforts MPFR C++ and Visual Studio Debugger play together well now:

To enable this feature user needs latest version of MPFR C++.
Plus she should add following statement: mpfr::mpreal=<DebugView> to the file autoexp.dat, which is located in [Visual Studio Installation Folder]\Common7\Packages\Debugger\.

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

3 Comments

  1. MichaelChou
    Posted December 28, 2011 at 4:47 pm | #

    bug report: the “DebugView” doesn’t update after these operations: ++, –, -=, +=, *=, /=, etc.

    • Posted December 29, 2011 at 1:12 pm | #

      Indeed this is a bug. Thank you Michael, I’ll fix it asap.

Post a Comment

Your email is never published nor shared.

Use native LaTeX syntax to include formulas: $ ... $, \[ ... \], etc. Do not forget to preview comment before posting.

Also you may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting