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
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* 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.
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.
21
-
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.
87
-
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].
88
103
89
-
Embedded pretty printers are not automatically loaded when debugging a binary under GDB.
90
-
There are two ways to enable auto-loading embedded pretty printers:
91
-
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`
92
-
For more information, see GDB's [auto-loading documentation].
93
-
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