Skip to content

Commit 4ec96ea

Browse files
authored
Merge pull request #4430 from Mikejo5000/mikejo-br15
Updates to customizing debugger data
2 parents 863bdaa + 06b695c commit 4ec96ea

8 files changed

+21
-17
lines changed

docs/debugger/create-custom-views-of-dot-managed-objects.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ You can customize the way Visual Studio displays data types in debugger variable
2929

3030
## Native Code
3131

32-
For C++ code, you can add custom data type expansions using the Natvis framework, as described in [Create custom views of native object in the debugger](/visualstudio/debugger/create-custom-views-of-native-objects). For C++/CLI code, you also can use attributes, described here in this article.
32+
For C++ code, you can add custom data type expansions using the Natvis framework, as described in [Create custom views of C++ objects in the debugger](/visualstudio/debugger/create-custom-views-of-native-objects). For C++/CLI code, you also can use attributes, described here in this article.
3333

3434
## Attributes
3535

@@ -43,7 +43,7 @@ You can write a visualizer to display any managed data type. For more informatio
4343

4444
## See Also
4545

46-
- [Using DebuggerTypeProxy Attribute](../debugger/using-debuggertypeproxy-attribute.md)
47-
- [Using the DebuggerDisplay Attribute](../debugger/using-the-debuggerdisplay-attribute.md)
46+
- [Tell the debugger what to show using the DebuggerDisplay Attribute](../debugger/using-the-debuggerdisplay-attribute.md)
47+
- [Tell the debugger what type to show using DebuggerTypeProxy Attribute](../debugger/using-debuggertypeproxy-attribute.md)
4848
- [Watch and QuickWatch Windows](../debugger/watch-and-quickwatch-windows.md)
4949
- [Enhancing Debugging with the Debugger Display Attributes](/dotnet/framework/debug-trace-profile/enhancing-debugging-with-the-debugger-display-attributes)

docs/debugger/create-custom-views-of-native-objects.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Create custom views of native objects"
2+
title: "Create custom views of C++ objects"
33
description: Use the Natvis framework to customize the way that Visual Studio displays native types in the debugger
44
ms.date: "10/31/2018"
55
ms.topic: "conceptual"
@@ -14,7 +14,7 @@ manager: jillfra
1414
ms.workload:
1515
- "cplusplus"
1616
---
17-
# Create custom views of native objects in the debugger
17+
# Create custom views of C++ objects in the debugger
1818

1919
The Visual Studio *Natvis* framework customizes the way native types appear in debugger variable windows, such as the **Locals** and **Watch** windows, and in **DataTips**. Natvis visualizations can help make the types you create more visible during debugging.
2020

docs/debugger/debugger-tips-and-tricks.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ If it is difficult or time-consuming to recreate a particular state in your app,
4747

4848
3. If you are interested in another type of condition, select **Filter** instead of **Conditional expression** in the **Breakpoint Settings** dialog box, and then follow the filter tips.
4949

50+
## Configure the data to show in the debugger
51+
52+
For C#, Visual Basic, and C++ (C++/CLI code only), you can tell the debugger what information to show using the [DebuggerDisplay](../debugger/using-the-debuggerdisplay-attribute.md) attribute. For C++ code, you can do the same using [Natvis visualizations](create-custom-views-of-native-objects.md).
53+
5054
## Change the execution flow
5155

5256
With the debugger paused on a line of code, use the mouse to grab the yellow arrow pointer on the left. Move the yellow arrow pointer to a different point in the code execution path. Then you use F5 or a step command to continue running the app.

docs/debugger/toc.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,18 +201,18 @@
201201
- name: Create custom views of data
202202
href: viewing-data-in-the-debugger.md
203203
items:
204-
- name: Create custom views of native objects
204+
- name: Create custom views of C++ objects
205205
href: create-custom-views-of-native-objects.md
206206
items:
207207
- name: "Visual C++ custom visualizer compatibility"
208208
href: visual-cpp-custom-visualizer-compatibility.md
209209
- name: Create custom views of managed objects
210210
href: create-custom-views-of-dot-managed-objects.md
211211
items:
212-
- name: Use DebuggerTypeProxy attribute
213-
href: using-debuggertypeproxy-attribute.md
214-
- name: Use the DebuggerDisplay attribute
212+
- name: Tell the debugger what to show
215213
href: using-the-debuggerdisplay-attribute.md
214+
- name: Tell the debugger what type to show
215+
href: using-debuggertypeproxy-attribute.md
216216
- name: Create custom visualizers of data
217217
href: create-custom-visualizers-of-data.md
218218
items:

docs/debugger/using-breakpoints.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,13 @@ Data breakpoints in .NET Core won't work for:
170170

171171
**To set a data breakpoint:**
172172

173-
1. In a C++ project, start debugging, and wait until a breakpoint is reached. On the **Debug** menu, choose **New Breakpoint** > **Data Breakpoint**
173+
1. In a C++ project, start debugging, and wait until a breakpoint is reached. On the **Debug** menu, choose **New Breakpoint** > **Data Breakpoint**
174174

175175
You can also select **New** > **Data Breakpoint** in the **Breakpoints** window or right-click an item in the **Autos**, **Watch**, or **Locals** window and select **Break when value changes**in the context menu.
176176

177-
2. In the **Address** box, type a memory address, or an expression that evaluates to a memory address. For example, type `&avar` to break when the contents of the variable `avar` changes.
177+
2. In the **Address** box, type a memory address, or an expression that evaluates to a memory address. For example, type `&avar` to break when the contents of the variable `avar` changes.
178178

179-
3. In the **Byte Count** dropdown, select the number of bytes you want the debugger to watch. For example, if you select **4**, the debugger will watch the four bytes starting at `&avar` and break if any of those bytes change value.
179+
3. In the **Byte Count** dropdown, select the number of bytes you want the debugger to watch. For example, if you select **4**, the debugger will watch the four bytes starting at `&avar` and break if any of those bytes change value.
180180

181181
Data breakpoints don't work under the following conditions:
182182
- A process that is not being debugged writes to the memory location.

docs/debugger/using-debuggertypeproxy-attribute.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Using DebuggerTypeProxy Attribute | Microsoft Docs"
2+
title: "Display custom type using DebuggerTypeProxy | Microsoft Docs"
33
ms.date: "11/04/2016"
44
ms.topic: "conceptual"
55
dev_langs:
@@ -18,7 +18,7 @@ manager: jillfra
1818
ms.workload:
1919
- "multiple"
2020
---
21-
# Using DebuggerTypeProxy Attribute (C#, Visual Basic, C++/CLI)
21+
# Tell the debugger what type to show using DebuggerTypeProxy Attribute (C#, Visual Basic, C++/CLI)
2222

2323
<xref:System.Diagnostics.DebuggerTypeProxyAttribute> specifies a proxy, or stand-in, for a type and changes the way the type is displayed in debugger windows. When you view a variable that has a proxy, the proxy stands in for the original type in the **display**. The debugger variable window displays only the public members of the proxy type. Private members are not displayed.
2424

docs/debugger/using-the-debuggerdisplay-attribute.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Using the DebuggerDisplay Attribute | Microsoft Docs"
2+
title: "Display custom info using DebuggerDisplay | Microsoft Docs"
33
ms.date: "01/09/2019"
44
ms.topic: "conceptual"
55
helpviewer_keywords:
@@ -13,7 +13,7 @@ manager: jillfra
1313
ms.workload:
1414
- "multiple"
1515
---
16-
# Using the DebuggerDisplay Attribute (C#, Visual Basic, F#, C++/CLI)
16+
# Tell the debugger what to show using the DebuggerDisplay Attribute (C#, Visual Basic, F#, C++/CLI)
1717
The <xref:System.Diagnostics.DebuggerDisplayAttribute> controls how an object, property, or field is displayed in the debugger variable windows. This attribute can be applied to types, delegates, properties, fields, and assemblies.
1818

1919
The `DebuggerDisplay` attribute has a single argument, which is a string to be displayed in the value column for instances of the type. This string can contain braces (`{` and `}`). Text within a pair of braces is evaluated as a field, property or method.

docs/debugger/viewing-data-in-the-debugger.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The [!INCLUDE[vsprvs](../code-quality/includes/vsprvs_md.md)] debugger provides
2626

2727
## Create custom views of data in variable windows and DataTips
2828

29-
Many of the [debugger windows](../debugger/debugger-windows.md), such as the **Autos** and **Watch** windows, allow you to inspect variables. You can customize how native types, managed objects, and your own types are shown in the debugger variable windows and in [DataTips](../debugger/view-data-values-in-data-tips-in-the-code-editor.md). For more information, see [Create custom views of native objects](../debugger/create-custom-views-of-native-objects.md) and [Create custom views of objects](../debugger/create-custom-views-of-dot-managed-objects.md).
29+
Many of the [debugger windows](../debugger/debugger-windows.md), such as the **Autos** and **Watch** windows, allow you to inspect variables. You can customize how C++ types, managed objects, and your own types are shown in the debugger variable windows and in [DataTips](../debugger/view-data-values-in-data-tips-in-the-code-editor.md). For more information, see [Create custom views of C++ objects](../debugger/create-custom-views-of-native-objects.md) and [Create custom views of objects](../debugger/create-custom-views-of-dot-managed-objects.md).
3030

3131
## Create custom visualizers
3232

0 commit comments

Comments
 (0)