Skip to content

Commit fd8bf83

Browse files
committed
customizing the data
1 parent 3dc751b commit fd8bf83

File tree

5 files changed

+15
-11
lines changed

5 files changed

+15
-11
lines changed

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++/CLI code, 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.

0 commit comments

Comments
 (0)