Skip to content

Commit b001699

Browse files
Merge pull request #10597 from MicrosoftDocs/main638737096275972477sync_temp
For protected branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents 62c9884 + 8192d27 commit b001699

31 files changed

+479
-419
lines changed

docs/debugger/debug-interface-access/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@
272272
href: idiaenumlinenumbers-reset.md
273273
- name: IDiaEnumLineNumbers::Skip
274274
href: idiaenumlinenumbers-skip.md
275-
- name: IDiaEnumDebugStreams
275+
- name: IDiaEnumNamedStreams
276276
items:
277277
- name: IDiaEnumNamedStreams
278278
href: idiaenumnamedstreams.md

docs/debugger/debug-with-copilot.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Debug with GitHub Copilot
33
description: Use Copilot to help debug your apps and provide performance insights.
4-
ms.date: 10/29/2024
4+
ms.date: 1/27/2025
55
ms.topic: how-to
66
dev_langs:
77
- CSharp
@@ -23,14 +23,7 @@ monikerRange: '>= vs-2022'
2323

2424
In this article, you'll learn how to debug more efficiently using GitHub Copilot. Copilot can provide code fixes along with in-depth analysis and explanations of how code works. It helps with proposed fixes to bugs, and explains things such as exceptions. Copilot understands call stacks, frames, variable names, and values. As a result, you can interact with the debugger-aware AI to ask detailed questions related to your code and to debugging issues in general.
2525

26-
In addition, Copilot provides more precise help for some targeted scenarios, such as the following:
27-
28-
- Exceptions
29-
- Variables
30-
- Deadlocks
31-
- Quick Actions (light bulb)
32-
33-
To get AI assistance while you're debugging in these scenarios, look for the **Ask Copilot** ![Screenshot of Ask Copilot button.](../debugger/media/vs-2022/debug-with-copilot-ask-copilot-button.png) button. In these scenarios, Copilot already knows the context for your questions. For example, it knows the current call stack, the code line you are asking about, and the name of the exception (if one occurred), so you don't need to provide context yourself in chat. Copilot also provides suggestions for the use of conditional breakpoints and tracepoints.
26+
In addition, Copilot provides more precise help for some targeted scenarios, such as Exceptions, and all those described in [Targeted scenarios for AI assistance](#targeted-scenarios-for-ai-assistance). In most of these scenarios, look for the **Ask Copilot** ![Screenshot of Ask Copilot button.](../debugger/media/vs-2022/debug-with-copilot-ask-copilot-button.png) button. In these scenarios, Copilot already knows the context for your questions.
3427

3528
For more information on GitHub Copilot Completions in Visual Studio, see [About GitHub Copilot Completions in Visual Studio](../ide/visual-studio-github-copilot-extension.md).
3629

@@ -46,7 +39,7 @@ To get started, you need:
4639
> [!NOTE]
4740
> If you experience authentication issues after installing the extension, see [Troubleshooting authentication issues with GitHub Copilot Chat](https://docs.github.com/en/copilot/troubleshooting-github-copilot/troubleshooting-authentication-issues-with-github-copilot-chat).
4841
49-
## Get AI assistance to debug your app
42+
## Debug using Copilot
5043

5144
The following simple example shows how to get AI assistance using the inline Chat view.
5245

@@ -131,7 +124,7 @@ The following simple example shows how to get AI assistance using the inline Cha
131124

132125
1. Choose **Cancel** so we can continue learning other features of Copilot in the next section.
133126

134-
## Get AI assistance for an exception
127+
## Debug an exception with Copilot
135128

136129
The following simple example shows how to get AI assistance when you encounter an exception and how to quickly update your code based on AI-suggested fixes.
137130

@@ -167,7 +160,7 @@ The following simple example shows how to get AI assistance when you encounter a
167160

168161
This time, no exception occurs. It has been fixed!
169162

170-
## Get AI assistance with conditional breakpoints and tracepoints
163+
## Get suggestions with conditional breakpoints and tracepoints
171164

172165
Copilot gives you suggestions for [conditional breakpoints](../debugger/using-breakpoints.md#breakpoint-conditions) and [tracepoints](../debugger/using-tracepoints.md) that are specific to your code.
173166

@@ -215,14 +208,21 @@ In this example, we show AI suggestions for a conditional breakpoint. For tracep
215208

216209
When the debugger pauses at the breakpoint, check the value of `item` and verify that the current value is `Fred`.
217210

218-
## Get AI assistance in the IEnumerable tabular visualizer
219-
220-
For AI assistance for the IEnumerable tabular visualizer, see [Modify the visualizer expression](../debugger/view-data-in-tabular-visualizer.md#modify-the-expression-in-the-ienumerable-visualizer).
211+
## Targeted scenarios for AI assistance
221212

222-
## Get AI assistance for auto insights
213+
Copilot understands call stacks, frames, variable names, and values. As a result, you can interact with the debugger-aware AI to ask detailed questions related to your code and to debugging issues in general.
223214

224-
In addition to interactive debugging assistance, Copilot provides detailed information in the CPU Usage [Auto Insights](../profiling/cpu-insights.md). It provides information and insights related to a set of specific performance insights. With Copilot, ask questions about functions on the identified hot paths in your code, which can help you produce more efficient or cost-effective code.
215+
In addition, Copilot provides more precise help for some targeted scenarios, such as those described in the following table.
225216

226-
The **Ask Copilot** button appears even if no specific performance insights are identified. Select **Ask Copilot** to learn from Copilot and start asking questions.
217+
|Scenario|Link|
218+
|-|-|
219+
|Exceptions|See [Debug an exception with Copilot](#debug-an-exception-with-copilot) in this article. Help with exceptions includes help with deadlock detection errors.|
220+
|Variables|See [Debug using Copilot](#debug-using-copilot) in this article.|
221+
|Conditional breakpoints and tracepoints|See [Get suggestions with conditional breakpoints and tracepoints](#get-suggestions-with-conditional-breakpoints-and-tracepoints) in this article.|
222+
|Quick Actions (light bulb)|See [Get AI assistance with Quick Actions](../ide/quick-actions.md#get-ai-assistance).|
223+
|IEnumerable tabular visualizer|See [Modify the visualizer expression](../debugger/view-data-in-tabular-visualizer.md#modify-the-expression-in-the-ienumerable-visualizer).|
224+
|Inline return values|See [View return values of method calls](../debugger/debugger-feature-tour.md#view-return-values-of-method-calls).|
225+
|Summary thread descriptions|See [Threads View (Parallel Stacks)](../debugger/using-the-parallel-stacks-window.md#threads-view).|
226+
|Auto insights for profiling|See [Get AI assistance with Auto insights](../profiling/cpu-insights.md#get-ai-assistance).|
227227

228-
[ ![Animation of using Copilot with CPU Usage.](../debugger/media/vs-2022/debug-with-copilot-top-insights.gif) ](../debugger/media/vs-2022/debug-with-copilot-top-insights.gif#lightbox)
228+
In most of these scenarios, you get targeted assistance by using the **Ask Copilot** ![Screenshot of Ask Copilot button.](../debugger/media/vs-2022/debug-with-copilot-ask-copilot-button.png) button. Copilot already knows the context for your questions. For example, it knows the current call stack, the code line you are asking about, and the name of the exception (if one occurred), so you don't need to provide context yourself in chat. Copilot also provides suggestions for the use of conditional breakpoints and tracepoints.

docs/debugger/debugger-feature-tour.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "First look at the debugger"
33
description: Get started debugging your applications by using the Visual Studio debugger and see what your code is doing while it runs.
44
ms.topic: conceptual
5-
ms.date: 11/5/2024
5+
ms.date: 1/27/2025
66
helpviewer_keywords:
77
- "debugger"
88
author: mikejo5000
@@ -190,6 +190,9 @@ Starting in Visual Studio 2022 version 17.12 Preview 3, you can also view return
190190

191191
[ ![Screenshot showing the return values of method calls.](../debugger/media/vs-2022/view-return-values.png) ](../debugger/media/vs-2022/view-return-values.png#lightbox)
192192

193+
With Copilot enabled, you can also get targeted assistance related to the inline return value by using the Ask Copilot button that appears in the data tip for the return value.
194+
195+
[ ![Screenshot showing the return values of method calls with Copilot icon.](../debugger/media/vs-2022/view-return-values-copilot.png) ](../debugger/media/vs-2022/view-return-values-copilot.png#lightbox)
193196
::: moniker-end
194197

195198
## Set a watch

docs/debugger/index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ landingContent:
9393
- text: Get started measuring memory usage
9494
url: ../profiling/memory-usage.md
9595
- text: AI-assisted CPU usage auto insights with Copilot
96-
url: debug-with-copilot.md#get-ai-assistance-for-auto-insights
96+
url: ../profiling/cpu-insights.md#get-ai-assistance
9797
- linkListType: overview
9898
links:
9999
- text: First look at profiling tools
15 KB
Loading
3.11 KB
Loading

docs/debugger/using-the-parallel-stacks-window.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Icon|Description|
8686
|![Status Excluded](media/vs-2022/icon-status-excluded.png)|Indicates the deadlocked node.|
8787
|![Status Information](media/vs-2022/icon-status-information.png)|Indicates that the current stack frame has additional information such as Waiting on, Waiting on lock, owned by, etc. |
8888
|![Status Blocked](media/vs-2022/icon-status-block.png)|Indicates that the current task is in blocked/waiting state, etc. |
89-
|![Status Running](media/vs-2022/icon-status-running.png)|Indicates that the currently running task.|
89+
|![Status Running](media/vs-2022/icon-status-running.png)|Indicates the currently running task.|
9090

9191
::: moniker-end
9292

docs/extensibility/visualstudio.extensibility/editor/editor-concepts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ The Visual Studio Editor extensibility object model is composed of a few integra
2222

2323
- This object is immutable and will never change after it is created.
2424
- You can use `ITextViewSnapshot.GetTextDocumentAsync()` to get the content from the document. Calling this method is expensive and only should be done if you need the document content.
25-
- `ITextViewSnapshot` can't be changed directly. All changes are requested via mutation. See [Make changes in a text document from an extension](editor.md#make-changes-in-a-text-document-from-an-extension).
25+
- `ITextViewSnapshot` can't be changed directly. All changes are requested via mutation. See [Make changes in a text document from an extension](./walkthroughs/editing-text.md).
2626

2727
## ITextDocumentSnapshot
2828

2929
[ITextDocumentSnapshot](/dotnet/api/microsoft.visualstudio.extensibility.editor.itextdocumentsnapshot) contains the content of the text document from a point in time or version.
3030

3131
- This object is immutable and will never change after it is created.
32-
- `ITextDocumentSnapshot` can't be changed directly. All changes are requested via mutation. See [Make changes in a text document from an extension](editor.md#make-changes-in-a-text-document-from-an-extension).
32+
- `ITextDocumentSnapshot` can't be changed directly. All changes are requested via mutation. See [Make changes in a text document from an extension](./walkthroughs/editing-text.md).
3333

3434
If you're familiar with legacy Visual Studio extensions, [ITextDocumentSnapshot](/dotnet/api/microsoft.visualstudio.extensibility.editor.itextdocumentsnapshot) is almost the same as
3535
[ITextSnapshot](/dotnet/api/microsoft.visualstudio.text.itextsnapshot) and supports most of the same methods for accessing the text.

0 commit comments

Comments
 (0)