File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed
Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 1515* xref:financial_examples.adoc[]
1616** xref:financial_examples.adoc#examples_money_parsing[Parsing Pricing Data from File]
1717** xref:financial_examples.adoc#examples_boost_math[Boost.Math Integration]
18+ * xref:debugger.adoc[]
1819* xref:api_reference.adoc[]
1920** xref:api_reference.adoc#api_ref_types[Types]
2021** xref:api_reference.adoc#api_ref_structs[Structs]
Original file line number Diff line number Diff line change 1+ ////
2+ Copyright 2025 Matt Borland
3+ Distributed under the Boost Software License, Version 1.0.
4+ https://www.boost.org/LICENSE_1_0.txt
5+ ////
6+
7+ [#debug]
8+ = Debugger Support
9+ :idprefix: debug_
10+
11+ Currently, Boost.Decimal supports pretty printing with LLDB.
12+ To load the pretty printer, add the following line to your `.lldbinit` :
13+
14+ [source]
15+ ----
16+ command script import /path/to/decimal/extra/decimal_printer.py
17+ ----
18+
19+ Once you have loaded `decimal_printer.py` you can run the following example to see how different values are represented with the pretty printer.
20+
21+ .The following example can be run with the debugger to show a variety of values
22+ ====
23+
24+ [source,c++]
25+ ----
26+ include::example$debugger.cpp[]
27+ ----
28+
29+ *_Expected Output:_*
30+
31+ image::debugger_result.png[]
32+ ====
You can’t perform that action at this time.
0 commit comments