You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/attributes/debugger.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,12 @@ r[attributes.debugger]
3
3
4
4
The following [attributes] are used for enhancing the debugging experience when using third-party debuggers like GDB or WinDbg.
5
5
6
+
<!-- template:attributes -->
6
7
r[attributes.debugger.debugger_visualizer]
7
8
## The `debugger_visualizer` attribute
8
9
9
10
r[attributes.debugger.debugger_visualizer.intro]
10
-
The *`debugger_visualizer`[attribute][attributes]* can be used to embed a debugger visualizer file into the debug information.
11
-
This enables an improved debugger experience for displaying values in the debugger.
11
+
The *`debugger_visualizer`[attribute][attributes]* can be used to embed a debugger visualizer file into the debug information. This improves the debugger experience when displaying values.
12
12
13
13
> [!EXAMPLE]
14
14
> <!-- ignore: requires external files-->
@@ -24,26 +24,25 @@ The `debugger_visualizer` attribute uses the [MetaListNameValueStr] syntax to sp
Natvis is an XML-based framework for Microsoft debuggers (such as Visual Studio and WinDbg) that uses declarative rules to customize the display of types.
37
-
For detailed information on the Natvis format, refer to Microsoft's [Natvis documentation].
36
+
Natvis is an XML-based framework for Microsoft debuggers (such as Visual Studio and WinDbg) that uses declarative rules to customize the display of types. For detailed information on the Natvis format, refer to Microsoft's [Natvis documentation].
GDB supports the use of a structured Python script, called a *pretty printer*, that describes how a type should be visualized in the debugger view.
104
-
For detailed information on pretty printers, refer to GDB's [pretty printing documentation].
102
+
GDB supports the use of a structured Python script, called a *pretty printer*, that describes how a type should be visualized in the debugger view. For detailed information on pretty printers, refer to GDB's [pretty printing documentation].
105
103
106
-
Embedded pretty printers are not automatically loaded when debugging a binary under GDB.
107
-
There are two ways to enable auto-loading embedded pretty printers:
108
-
1. Launch GDB with extra arguments to explicitly add a directory or binary to the auto-load safe path: `gdb -iex "add-auto-load-safe-path safe-path path/to/binary" path/to/binary`
109
-
For more information, see GDB's [auto-loading documentation].
110
-
1. Create a file named `gdbinit` under `$HOME/.config/gdb` (you may need to create the directory if it doesn't already exist). Add the following line to that file: `add-auto-load-safe-path path/to/binary`.
104
+
> [!NOTE]
105
+
> Embedded pretty printers are not automatically loaded when debugging a binary under GDB.
106
+
>
107
+
> There are two ways to enable auto-loading embedded pretty printers:
108
+
>
109
+
> 1. Launch GDB with extra arguments to explicitly add a directory or binary to the auto-load safe path: `gdb -iex "add-auto-load-safe-path safe-path path/to/binary" path/to/binary` For more information, see GDB's [auto-loading documentation].
110
+
> 1. Create a file named `gdbinit` under `$HOME/.config/gdb` (you may need to create the directory if it doesn't already exist). Add the following line to that file: `add-auto-load-safe-path path/to/binary`.
0 commit comments