3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Visual C++ Debugger Visualizers</title>
5 <link rel="stylesheet" href="../../../multiprecision.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7 <link rel="home" href="../../../index.html" title="Chapter 1. Boost.Multiprecision">
8 <link rel="up" href="../misc.html" title="Miscellaneous Number Types.">
9 <link rel="prev" href="debug_adaptor.html" title="debug_adaptor">
10 <link rel="next" href="../conversions.html" title="Constructing and Interconverting Between Number Types">
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table cellpadding="2" width="100%"><tr>
14 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td>
15 <td align="center"><a href="../../../../../../../index.html">Home</a></td>
16 <td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td>
17 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19 <td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
22 <div class="spirit-nav">
23 <a accesskey="p" href="debug_adaptor.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../misc.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../conversions.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
26 <div class="titlepage"><div><div><h4 class="title">
27 <a name="boost_multiprecision.tut.misc.visualizers"></a><a class="link" href="visualizers.html" title="Visual C++ Debugger Visualizers">Visual C++
28 Debugger Visualizers</a>
29 </h4></div></div></div>
31 Let's face it debugger multiprecision numbers is hard - simply because
32 we can't easily inspect the value of the numbers. Visual C++ provides a
33 partial solution in the shape of "visualizers" which provide
34 improved views of complex data structures, these visualizers need to be
35 added to the <code class="computeroutput"><span class="special">[</span><span class="identifier">Visualizer</span><span class="special">]</span></code> section of <code class="computeroutput"><span class="identifier">autoexp</span><span class="special">.</span><span class="identifier">dat</span></code>
36 located in the <code class="computeroutput"><span class="identifier">Common7</span><span class="special">/</span><span class="identifier">Packages</span><span class="special">/</span><span class="identifier">Debugger</span></code>
37 directory of your Visual Studio installation. The actual visualizer code
38 is in the sandbox <a href="https://svn.boost.org/svn/boost/sandbox/boost_docs/subprojects/DebuggerVisualizers/multiprecision.vis.txt" target="_top">here</a>
39 - just cut and paste the code into your <code class="computeroutput"><span class="identifier">autoexp</span><span class="special">.</span><span class="identifier">dat</span></code>
42 <div class="note"><table border="0" summary="Note">
44 <td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../../doc/src/images/note.png"></td>
45 <th align="left">Note</th>
47 <tr><td align="left" valign="top"><p>
48 These visualizers have only been tested with VC10, also given the ability
49 of buggy visualizers to crash your Visual C++ debugger, make sure you
50 back up <code class="computeroutput"><span class="identifier">autoexp</span><span class="special">.</span><span class="identifier">dat</span></code> file before using these!!
54 The first visualizer provides improved views of <code class="computeroutput"><span class="identifier">debug_adaptor</span></code>:
57 <span class="inlinemediaobject"><img src="../../../../debugger1.png"></span>
60 The next visualizer provides improved views of cpp_int: small numbers are
61 displayed as actual values, while larger numbers are displayed as an array
62 of hexadecimal parts, with the most significant part first.
65 Here's what it looks like for small values:
68 <span class="inlinemediaobject"><img src="../../../../debugger4.png"></span>
71 And for larger values:
74 <span class="inlinemediaobject"><img src="../../../../debugger5.png"></span>
77 There is also a <code class="computeroutput"><span class="special">~</span><span class="identifier">raw</span></code>
78 child member that lets you see the actual members of the class:
81 <span class="inlinemediaobject"><img src="../../../../debugger6.png"></span>
84 The visualizer for <code class="computeroutput"><span class="identifier">cpp_dec_float</span></code>
85 shows the first few digits of the value in the preview field, and the full
86 array of digits when you expand the view. As before the <code class="computeroutput"><span class="special">~</span><span class="identifier">raw</span></code> child gives you access to the actual
90 <span class="inlinemediaobject"><img src="../../../../debugger7.png"></span>
93 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
94 <td align="left"></td>
95 <td align="right"><div class="copyright-footer">Copyright © 2002-2019 John Maddock
96 and Christopher Kormanyos<p>
97 Distributed under the Boost Software License, Version 1.0. (See accompanying
98 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
103 <div class="spirit-nav">
104 <a accesskey="p" href="debug_adaptor.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../misc.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../conversions.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>