Skip to content

Commit 0b9db3a

Browse files
committed
Add debugger doc page
1 parent 0d08900 commit 0b9db3a

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed
214 KB
Loading

doc/modules/ROOT/nav.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
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]
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
====

0 commit comments

Comments
 (0)