|
1 | 1 | ---
|
2 | 2 | title: "View data with the Tabular visualizer "
|
3 | 3 | description: View large collection objects with built-in tabular visualizers in the Visual Studio debugger and examine data by row and column for fields and properties.
|
4 |
| -ms.date: "01/19/2023" |
| 4 | +ms.date: "07/30/2024" |
5 | 5 | ms.topic: "conceptual"
|
6 | 6 | dev_langs:
|
7 | 7 | - "CSharp"
|
@@ -29,35 +29,43 @@ To open the visualizer, you must be paused during debugging.
|
29 | 29 |
|
30 | 30 | You can access the visualizer by clicking on the magnifying glass icon that appears next to the Value for one of those objects  in a debugger variables window or in a DataTip.
|
31 | 31 |
|
32 |
| -:::image type="content" source="../debugger/media/vs-2022/dbg-ienumerable-debugger-visualizer.png" alt-text="Diagram of Open an IEnumerable visualizer."::: |
| 32 | +:::image type="content" source="../debugger/media/vs-2022/dbg-ienumerable-debugger-visualizer.png" alt-text="Screenshot of Open an IEnumerable visualizer."::: |
33 | 33 |
|
34 | 34 | ## DataSet visualizer
|
35 | 35 |
|
36 | 36 | The DataSet Visualizer allows you to view the contents of a DataSet, DataTable, DataView, or DataViewManager object.
|
37 | 37 |
|
38 |
| -:::image type="content" source="../debugger/media/dbg-tips-dataset-visualizer.png " alt-text="Diagram of View the DataSet visualizer data."::: |
| 38 | +:::image type="content" source="../debugger/media/dbg-tips-dataset-visualizer.png " alt-text="Screenshot of View the DataSet visualizer data."::: |
| 39 | + |
39 | 40 | ## IEnumerable visualizer
|
40 | 41 |
|
41 | 42 | Starting in Visual Studio 2022, you can view IEnumerable collections in a tabular view.
|
42 | 43 |
|
43 | 44 | The IEnumerable visualizer helps explore large collection objects in a more streamlined way. The visualizer supports IEnumerable collections where the object type (T) can be simple types or complex types like dictionaries.
|
44 | 45 |
|
45 |
| -:::image type="content" source="../debugger/media/vs-2022/dbg-ienumerable-visualizer-data.png" alt-text="Diagram of View the IEnumerable visualizer data."::: |
| 46 | +:::image type="content" source="../debugger/media/vs-2022/dbg-ienumerable-visualizer-data.png" alt-text="Screenshot of View the IEnumerable visualizer data."::: |
46 | 47 |
|
47 | 48 | You can use the right-click context menu to customize the view:
|
48 | 49 |
|
49 | 50 | - Select **Hide Column** to hide duplicate data.
|
50 | 51 | - Select **Expand Column** to see more details items in the complex data.
|
51 | 52 | - Select **Hide Children** to get a more concise view of your data.
|
52 | 53 |
|
53 |
| -## Filter, sort, and export visualizer data |
| 54 | +## Filter, sort, and export visualizer data |
| 55 | + |
54 | 56 | - Both DataSet and IEnumerable support filtering, sorting, and exporting of visualizer data.
|
55 | 57 | - You can sort the visualizer columns in ascending/descending order by clicking on the column name.
|
56 | 58 | - You also can filter visualizer data based on a filter string. Enter the string in the filter box in the upper right corner and press Enter. The Visualizer returns all the rows that contain a value that matches the filter string.
|
57 | 59 | - You can export the data from IEnumerable visualizers in CSV/Excel format using the dropdown on the top right corner.
|
58 | 60 | - You can also export the filtered and sorted results in CSV/Excel format.
|
59 | 61 |
|
60 |
| -:::image type="content" source="../debugger/media/vs-2022/dbg-ienumerable-visualizer-filtering.gif" alt-text="Diagram of View the visualizer data filter."::: |
| 62 | +:::image type="content" source="../debugger/media/vs-2022/dbg-ienumerable-visualizer-filtering.png" alt-text="Screenshot of View the visualizer data filter."::: |
| 63 | + |
| 64 | +## Modify the visualizer expression |
| 65 | + |
| 66 | +Starting in Visual Studio 2022 version 17.11 Preview 6, you can directly change the **Expression** textbox with a modified LINQ expression. The visualizer data gets updated, reflecting the data change resulting from your new query. |
| 67 | + |
| 68 | +:::image type="content" source="../debugger/media/vs-2022/dbg-ienumerable-visualizer-edit-expression.png" alt-text="Screenshot of View the visualizer data edit the expression."::: |
61 | 69 |
|
62 | 70 | ## Related content
|
63 | 71 | - [View strings in a string visualizer](../debugger/view-strings-visualizer.md)
|
|
0 commit comments