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: docs/debugger/debug-with-copilot.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,7 @@ In addition, Copilot provides more precise help for some targeted scenarios, suc
57
57
|Conditional breakpoints and tracepoints|See [Get suggestions with conditional breakpoints and tracepoints](#get-suggestions-with-conditional-breakpoints-and-tracepoints) in this article.|
58
58
|Quick Actions (light bulb)|See [Get AI assistance with Quick Actions](../ide/quick-actions.md#get-ai-assistance).|
59
59
|IEnumerable tabular visualizer|See [Get AI assistance](../debugger/view-data-in-tabular-visualizer.md#get-ai-assistance).|
60
+
|Auto-detect and format in Text Visualizer|See [Auto-detect and format](../debugger/view-strings-visualizer.md#auto-detect-and-format). Copilot automatically identifies encoded or compressed strings and decodes them in a single click.|
60
61
|Inline return values|See [View return values of method calls](../debugger/autos-and-locals-windows.md#view-inline-return-values-of-method-calls-in-the-code-editor).|
Without fail, the code we write as software developers doesn’t always do what we expected it to do. Sometimes it does something completely different! When the unexpected happens, the next task is to figure out why, and although we might be tempted to just keep staring at our code for hours, it's easier and more efficient to use a debugging tool or debugger.
15
+
Without fail, the code we write as software developers doesn't always do what we expected it to do. Sometimes it does something completely different! When the unexpected happens, the next task is to figure out why, and although we might be tempted to just keep staring at our code for hours, it's easier and more efficient to use a debugging tool or debugger.
16
16
17
-
A debugger, unfortunately, isn’t something that can magically reveal all the problems or “bugs” in our code. *Debugging* means to run your code step by step in a debugging tool like Visual Studio, to find the exact point where you made a programming mistake. You then understand what corrections you need to make in your code and debugging tools often allow you to make temporary changes so you can continue running the program.
17
+
A debugger, unfortunately, isn't something that can magically reveal all the problems or "bugs" in our code. *Debugging* means to run your code step by step in a debugging tool like Visual Studio, to find the exact point where you made a programming mistake. You then understand what corrections you need to make in your code and debugging tools often allow you to make temporary changes so you can continue running the program.
18
18
19
19
Using a debugger effectively is also a skill that takes time and practice to learn but is ultimately a fundamental task for every software developer. In this article, we introduce the core principles of debugging and provide tips to get you started.
20
20
@@ -38,7 +38,7 @@ Before you investigate a bug or an error, think of the assumptions that made you
38
38
39
39
* Are you using an API correctly? Maybe you used the right API but didn't use it in the right way.
40
40
41
-
* Does your code contain any typos? Some typos, like a simple misspelling of a variable name, can be difficult to see, especially when working with languages that don’t require variables to be declared before they’re used.
41
+
* Does your code contain any typos? Some typos, like a simple misspelling of a variable name, can be difficult to see, especially when working with languages that don't require variables to be declared before they're used.
42
42
43
43
* Did you make a change to your code and assume it's unrelated to the problem that you're seeing?
44
44
@@ -57,7 +57,7 @@ When you normally run an app, you see errors and incorrect results only after th
57
57
58
58
When you run an app within a debugger, also called *debugging mode*, the debugger actively monitors everything that's happening as the program runs. It also allows you to pause the app at any point to examine its state and then step through your code line by line to watch every detail as it happens.
59
59
60
-
In Visual Studio, you enter debugging mode by using **F5** (or the **Debug** > **Start Debugging** menu command or the **Start Debugging** button :::image type="content" source="../debugger/media/dbg-tour-start-debugging.png" alt-text="Icon showing Start Debugging button."::: in the Debug Toolbar). If any exceptions occur, Visual Studio’s Exception Helper takes you to the exact point where the exception occurred and provides other helpful information. For more information on how to handle exceptions in your code, see [Debugging techniques and tools](../debugger/write-better-code-with-visual-studio.md#fix-an-exception).
60
+
In Visual Studio, you enter debugging mode by using **F5** (or the **Debug** > **Start Debugging** menu command or the **Start Debugging** button :::image type="content" source="../debugger/media/dbg-tour-start-debugging.png" alt-text="Icon showing Start Debugging button."::: in the Debug Toolbar). If any exceptions occur, Visual Studio's Exception Helper takes you to the exact point where the exception occurred and provides other helpful information. For more information on how to handle exceptions in your code, see [Debugging techniques and tools](../debugger/write-better-code-with-visual-studio.md#fix-an-exception).
61
61
62
62
If you didn't get an exception, you probably have a good idea of where to look for the problem in your code. This step is where you use *breakpoints* with the debugger to give yourself a chance to examine your code more carefully. Breakpoints are the most basic and essential feature of reliable debugging. A breakpoint indicates where Visual Studio should pause your running code so you can take a look at the values of variables, or the behavior of memory, the sequence in which code runs.
Copy file name to clipboardExpand all lines: docs/debugger/find-your-debugging-task.yml
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ sections:
34
34
35
35
- **How do I log information to the Output window under configurable conditions without modifying or stopping my code?**
36
36
37
-
Tracepoints allow you to log information to the Output window under configurable conditions without modifying or stopping your code. For more information, see [Use tracepoints in the Visual Studio debugger](../debugger/using-tracepoints.md)
37
+
Tracepoints allow you to log information to the Output window under configurable conditions without modifying or stopping your code. For more information, see [Use tracepoints in the Visual Studio debugger](../debugger/using-tracepoints.md).
38
38
39
39
- **Manage and keep track of my breakpoints**
40
40
@@ -100,17 +100,17 @@ sections:
100
100
101
101
See [Attach to a running processes](attach-to-running-processes-with-the-visual-studio-debugger.md).
102
102
103
-
- **How can I to attach to the same application repeatedly?**
103
+
- **How can I attach to the same application repeatedly?**
104
104
105
105
You can use **Reattach to Process** (**Shift+Alt+P**) to easily allow you to start debugging your application in one click without needing to go through the Attach to Process dialog every time.
106
-
See [Reattach to a process](attach-to-running-processes-with-the-visual-studio-debugger.md#BKMK_reattach)
106
+
See [Reattach to a process](attach-to-running-processes-with-the-visual-studio-debugger.md#BKMK_reattach).
107
107
108
108
- question: |
109
109
Debug multithreaded applications
110
110
answer: |
111
111
- **How can I debug a multi-threaded application? Or, is my application in a hung state?**
112
112
113
-
See [Parallel Stacks window](using-the-parallel-stacks-window.md) further troubleshooting
113
+
See [Parallel Stacks window](using-the-parallel-stacks-window.md) further troubleshooting.
114
114
115
115
- **How can I view the order in which functions are called?**
116
116
@@ -145,7 +145,7 @@ sections:
145
145
146
146
Just My Code is a Visual Studio debugging feature that automatically steps over calls to system, framework, and other non-user code.
147
147
In the Call Stack window, Just My Code collapses these calls into [External Code] frames.
148
-
See [Debug only user code with Just My Code](just-my-code.md)
148
+
See [Debug only user code with Just My Code](just-my-code.md).
149
149
150
150
- **How can I view or debug the raw assembly instructions that my program is executing?**
151
151
@@ -154,17 +154,17 @@ sections:
154
154
- **Can I see source code for .NET Libraries?**
155
155
156
156
Enable Microsoft Symbol Servers from Debug > Options > Symbols in order to download symbols and source for .NET Libraries.
157
-
See [Specify symbol](specify-symbol-dot-pdb-and-source-files-in-the-visual-studio-debugger.md)
157
+
See [Specify symbol](specify-symbol-dot-pdb-and-source-files-in-the-visual-studio-debugger.md).
158
158
159
159
- **How can I load PDBs from a specific or shared location or server?**
160
160
161
161
Configure your Symbol Servers from Debug > Options > Symbols.
162
-
See [Specify symbol](specify-symbol-dot-pdb-and-source-files-in-the-visual-studio-debugger.md)
162
+
See [Specify symbol](specify-symbol-dot-pdb-and-source-files-in-the-visual-studio-debugger.md).
163
163
164
164
- **How can I never load a specific PDB? Or, how can I always load one?**
165
165
166
166
Configure your Include and Exclude Lists in Debug > Options > Symbols.
167
-
See [Specify symbol](specify-symbol-dot-pdb-and-source-files-in-the-visual-studio-debugger.md)
167
+
See [Specify symbol](specify-symbol-dot-pdb-and-source-files-in-the-visual-studio-debugger.md).
168
168
169
169
- question: |
170
170
Configure debugging
@@ -184,12 +184,12 @@ sections:
184
184
- **Do I need to save a dump?**
185
185
186
186
While stopped at an error or breakpoint during debugging, select **Debug > Save Dump As**.
187
-
See [Dump files](using-dump-files.md)
187
+
See [Dump files](using-dump-files.md).
188
188
189
189
- **How do I analyze a dump file?**
190
190
191
191
Open the dump by choosing **File > Open** in Visual Studio. To start debugging, select **Debug with Managed Only**, **Debug with Native Only**, **Debug with Mixed**, or **Debug with Managed Memory**.
192
-
See [Dump files](using-dump-files.md)
192
+
See [Dump files](using-dump-files.md).
193
193
194
194
- **Can I edit code during a debugging session?**
195
195
@@ -201,7 +201,7 @@ sections:
201
201
202
202
- **How can I fix performance issues?**
203
203
204
-
See [First look at the profiling tools](../profiling/profiling-feature-tour.md)
204
+
See [First look at the profiling tools](../profiling/profiling-feature-tour.md).
Copy file name to clipboardExpand all lines: docs/debugger/view-strings-visualizer.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,9 @@
1
1
---
2
2
title: "View strings in a string visualizer"
3
3
description: Use the string visualizer in Visual Studio debugger to view text strings, XML, HTML, and JSON. You can view other object types, including DataSet and DataTable.
4
-
ms.date: "01/12/2026"
4
+
ms.date: "04/20/2026"
5
5
ms.topic: how-to
6
+
ms.custom: awp-ai
6
7
f1_keywords:
7
8
- "vs.debug.stringviewer"
8
9
dev_langs:
@@ -19,6 +20,7 @@ ms.author: "mikejo"
19
20
manager: mijacobs
20
21
ms.subservice: debug-diagnostics
21
22
---
23
+
22
24
# View strings in a string visualizer in Visual Studio
23
25
24
26
While you are debugging in Visual Studio, you can view strings with the built-in string visualizer. The string visualizer shows strings that are too long for a data tip or debugger window. It can also help you identify malformed strings.
@@ -67,6 +69,14 @@ To search for a sub-string in the text visualizer, press **Ctrl + F** to open th
67
69

68
70
69
71
If you need to read content behind the search box, hold down **Ctrl** and the search box becomes transparent.
72
+
73
+
### Auto-detect and format
74
+
75
+
The **Auto-detect and format** button in the top-right of the Text Visualizer automatically identifies the encoding or compression format of a string and applies the necessary transformations in a single click. Powered by Copilot, this feature instantly converts complex data, such as GZip-compressed Base64, into readable text — removing the need for manual decoding steps or external tools.
76
+
77
+
To use this feature, select the **Auto-detect and format** button while viewing a string in the Text Visualizer.
78
+
79
+

Copy file name to clipboardExpand all lines: docs/debugger/what-is-debugging.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ A debugger is a very specialized developer tool that attaches to your running ap
22
22
23
23
## Debug mode vs. running your app
24
24
25
-
When you run your app in Visual Studio for the first time, you may start it by pressing the green arrow button  in the toolbar (or **F5**). By default, the **Debug** value appears in the drop-down to the left. If you are new to Visual Studio, this can leave the impression that debugging your app has something to do with running your app--which it does--but these are fundamentally two very different tasks.
25
+
When you run your app in Visual Studio for the first time, you may start it by pressing the green arrow button  in the toolbar (or **F5**). By default, the **Debug** value appears in the drop-down to the left. If you are new to Visual Studio, this can leave the impression that debugging your app has something to do with running your app—which it does—but these are fundamentally two very different tasks.
26
26
27
27

28
28
@@ -36,7 +36,7 @@ When you switch this setting, you change your project from a debug configuration
36
36
37
37
## When to use a debugger
38
38
39
-
The debugger is an essential tool to find and fix bugs in your apps. However, context is king, and it is important to leverage all the tools at your disposable to help you quickly eliminate bugs or errors. Sometimes, the right "tool" might be a better coding practice. By learning when to use the debugger vs. some other tool, you will also learn how to use the debugger more effectively.
39
+
The debugger is an essential tool to find and fix bugs in your apps. However, context is king, and it is important to leverage all the tools at your disposal to help you quickly eliminate bugs or errors. Sometimes, the right "tool" might be a better coding practice. By learning when to use the debugger vs. some other tool, you will also learn how to use the debugger more effectively.
Copy file name to clipboardExpand all lines: docs/get-started/csharp/tutorial-aspnet-core.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
---
2
2
title: "Tutorial: Create C# ASP.NET Core web application"
3
3
description: Create a web application in the Visual Studio integrated development environment (IDE) by using C# and ASP.NET Core, make changes to the app, and run the app.
0 commit comments