Skip to content

Commit 5778ef0

Browse files
committed
Merged main into live
2 parents ab8d006 + 168c41c commit 5778ef0

File tree

6 files changed

+26
-4
lines changed

6 files changed

+26
-4
lines changed
1.43 KB
Loading
606 Bytes
Loading

docs/debugger/attach-to-running-processes-with-the-visual-studio-debugger.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Attach to running processes with the debugger
33
description: Attach the Visual Studio debugger to a running process on a local or remote computer to debug running apps, apps not created in Visual Studio, and other scenarios.
4-
ms.date: "04/24/2024"
4+
ms.date: "01/31/2025"
55
ms.topic: "conceptual"
66
f1_keywords:
77
- "vs.debug.processes.attach"
@@ -25,6 +25,7 @@ author: "mikejo5000"
2525
ms.author: "mikejo"
2626
manager: mijacobs
2727
ms.subservice: debug-diagnostics
28+
zone_pivot_groups: programming-languages-set-one
2829
---
2930

3031
# Attach to running processes with the Visual Studio debugger
@@ -36,6 +37,7 @@ You can use **Attach to Process** to debug running apps on local or remote compu
3637
> [!TIP]
3738
> Not sure whether to use **Attach to Process** for your debugging scenario? See [Common debugging scenarios](#BKMK_Scenarios).
3839
40+
::: zone pivot="programming-language-dotnet,programming-language-dotnetf,programming-language-cpp,programming-language-all"
3941
## <a name="BKMK_Attach_to_a_running_process"></a> Attach to a running process on your local machine
4042

4143
To quickly reattach to a process you attached to previously, see [Reattach to a process](#BKMK_reattach).
@@ -112,6 +114,7 @@ To attach to a process on your local computer:
112114

113115
> [!NOTE]
114116
> You can be attached to multiple apps for debugging, but only one app is active in the debugger at a time. You can set the active app in the Visual Studio **Debug Location** toolbar or **Processes** window.
117+
::: zone-end
115118

116119
## <a name="BKMK_Attach_to_a_process_on_a_remote_computer"></a> Attach to a process on a remote computer
117120

@@ -224,6 +227,7 @@ In some cases, when you debug in a Remote Desktop (Terminal Services) session, t
224227

225228
If neither of those workarounds is possible, a third option is to attach to the process by running `vsjitdebugger.exe -p <ProcessId>` from the Windows command line. You can determine the process ID using *tlist.exe*. To obtain *tlist.exe*, download and install Debugging Tools for Windows, available at [WDK and WinDbg downloads](/windows-hardware/drivers/download-the-wdk).
226229

230+
::: zone pivot="programming-language-dotnet"
227231
::: moniker range=">= vs-2022"
228232

229233
## Attach to a .NET Core process running on Azure App Service (Windows)
@@ -243,6 +247,7 @@ If you're publishing to Azure App Service (Windows), you'll find the **Attach De
243247
## Attach to a .NET Core process running on Linux using SSH
244248

245249
For more information, see [Remote debug .NET Core running on Linux using SSH](../debugger/remote-debugging-dotnet-core-linux-with-ssh.md).
250+
::: zone-end
246251

247252
## <a name="BKMK_Linux_Docker_Attach"></a> Attach to a process running on a Docker container
248253

docs/debugger/debug-with-copilot.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +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 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.
26+
In addition, Copilot provides more precise help for some targeted scenarios, such as Exceptions, and all those described in [AI-enhanced scenarios for debugging](#ai-enhanced-scenarios). 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.
2727

2828
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).
2929

@@ -208,13 +208,13 @@ In this example, we show AI suggestions for a conditional breakpoint. For tracep
208208

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

211-
## Targeted scenarios for AI assistance
211+
## AI-enhanced scenarios
212212

213213
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.
214214

215215
In addition, Copilot provides more precise help for some targeted scenarios, such as those described in the following table.
216216

217-
|Scenario|Link|
217+
|Feature or scenario|Link|
218218
|-|-|
219219
|Exceptions|See [Debug an exception with Copilot](#debug-an-exception-with-copilot) in this article. Help with exceptions includes help with deadlock detection errors.|
220220
|Variables|See [Debug using Copilot](#debug-using-copilot) in this article.|
96.3 KB
Loading

docs/javascript/write-and-edit-code.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,23 @@ Right-click on `render` and choose **Peek Definition** from the content menu. Or
9191

9292
Close the peeked definition window by choosing the small box with an "x" at the top right of the pop-up window.
9393

94+
::: moniker range=">=vs-2022"
95+
## View inlay hints
96+
97+
Starting in Visual Studio 2022 version 17.12, inlay hints show additional information about source code that is rendered inline. This is usually used to show inferred types, parameter names, and other implicit information from your code directly in your editor.
98+
99+
![Screenshot of inlay hints.](../javascript/media/vs-2022/write-code-inlay-hints.png)
100+
101+
To configure inlay hints:
102+
103+
1. Go to **Tools > Options > Text Editor > All Languages > Inlay Hints**, and select an option for viewing inlay hints.
104+
105+
1. Go to **Tools > Options > Text Editor > JavaScript/TypeScript > Advanced > General** and configure the inlay hints you want to hide or show.
106+
107+
By default, most of these options are disabled.
108+
109+
::: moniker-end
110+
94111
## Use code snippets
95112

96113
Visual Studio provides useful *code snippets* that you can use to quickly and easily generate commonly used code blocks. [Code snippets](../ide/code-snippets.md) are available for different programming languages including JavaScript. Let's add a `for` loop to your code file.

0 commit comments

Comments
 (0)