Skip to content

Commit

Permalink
Merge pull request MicrosoftDocs#10586 from MicrosoftDocs/main6387327…
Browse files Browse the repository at this point in the history
…74631933146sync_temp

For protected branch, push strategy should use PR and merge to target branch method to work around git push error
  • Loading branch information
learn-build-service-prod[bot] authored Jan 24, 2025
2 parents 76c3d5e + fcdd07c commit 5379086
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 21 deletions.
12 changes: 8 additions & 4 deletions docs/debugger/how-to-enable-debugging-for-aspnet-applications.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Enable debugging for ASP.NET apps
description: Learn how to enable debugging for ASP.NET and ASP.NET Core apps in Visual Studio. You can run the process on an IIS Express server or a local IIS server.
ms.date: 01/30/2024
ms.date: 01/21/2025
ms.topic: how-to
dev_langs:
- CSharp
Expand Down Expand Up @@ -48,7 +48,7 @@ You can also debug an ASP.NET or ASP.NET Core app on a local IIS server (version
::: moniker range=">=vs-2022"
## Debug ASP.NET Core apps

A default profile based for https or one based on the project name may be present, which are configured for the Kestrel web server. If you're debugging on local IIS instead, make sure you meet the [prerequisites for local IIS debugging](#prerequisites-for-local-iis-server).
A default profile named **https** or one based on the project name may be present, which are configured for the Kestrel web server. If you're debugging on local IIS instead, make sure you meet the [prerequisites for local IIS debugging](#prerequisites-for-local-iis-server).

1. Select the ASP.NET Core project in Visual Studio **Solution Explorer** and click the **Properties** icon, or press **Alt**+**Enter**, or right-click and choose **Properties**.

Expand All @@ -66,9 +66,13 @@ A default profile based for https or one based on the project name may be presen

1. Make sure that **Url**, **App URL**, and **App SSL URL** are correct.

**Url** specifies the location of host URL for .NET or .NET Core. For a profile named after the project (that is, the commandName property in `launchSettings.json` is *Project*), the Kestrel server listens to the port specified. For an IIS profile, this is typically the same value as the **App URL**. For more information, see the IIS launch profile section under [Configure the project](/aspnet/core/host-and-deploy/iis/development-time-iis-support#configure-the-project).
**Url** specifies the location of host URL for .NET Core or .NET 5+. For a profile named after the project (that is, the commandName property in `launchSettings.json` is *Project*), the Kestrel server listens to the port specified. For an IIS profile, this is typically the same value as the **App URL**. For more information, see the IIS launch profile section under [Configure the project](/aspnet/core/host-and-deploy/iis/development-time-iis-support#configure-the-project).

**App URL** and **App SSL URL** specify the application URL(s). For a profile named after the project, this property specifies the Kestrel server URLs, typically `https://localhost:5001` and `http://localhost:5000`. For IIS Express, the **App SSL URL** is typically `http://localhost:44334`.
**App URL** and **App SSL URL** specify the application URL(s).

- For an **https** profile, the **App URL** property is typically `https://localhost:7241;http://localhost:5175`.
- For a profile named after the project, these properties are typically `http://localhost:5000` and `https://localhost:5001`.
- For IIS Express, the **App SSL URL** is typically `https://localhost:44334`.

1. Under **Environment variables**, make sure that **ASPNETCORE_ENVIRONMENT** is present with a value of **Development**. If not, add the variable.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Set debug and release configurations
description: Set debug and release configurations in Visual Studio. You build the debug version for debugging and the release version for the final release distribution.
ms.date: 01/19/2024
ms.date: 01/21/2025
ms.topic: how-to
f1_keywords:
- vs.debug.builds
Expand Down
2 changes: 1 addition & 1 deletion docs/debugger/managing-exceptions-with-the-debugger.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Manage exceptions with the debugger
description: Learn how to specify which exceptions the debugger breaks on, at which point you want the debugger to break, and how breaks are handled.
ms.date: 01/19/2024
ms.date: 01/21/2025
ms.topic: how-to
f1_keywords:
- vs.debug.exceptions
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions docs/debugger/remote-debugging.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Remote debugging
description: Debug a Visual Studio application that has been deployed on a different computer by using the Visual Studio remote debugger.
ms.date: 01/19/2024
ms.date: 01/21/2025
ms.topic: conceptual
f1_keywords:
- "vs.debug.remote.overview"
Expand Down Expand Up @@ -84,7 +84,7 @@ You can change some aspects of the configuration of the remote debugger after yo
- If you need to add permissions for other users to connect to the remote debugger, choose **Tools > Permissions**. You must have administrator privileges to grant or deny permissions.

> [!IMPORTANT]
> You can run the remote debugger under a user account that differs from the user account you are using on the Visual Studio computer, but you must add the different user account to the remote debugger's permissions.
> You can run the remote debugger under a user account that differs from the user account you're using on the Visual Studio computer, but you must add the different user account to the remote debugger's permissions.
Alternatively, you can start the remote debugger from the command line with the **/allow \<username>** parameter: **msvsmon /allow \<username@computer>**.

Expand All @@ -93,15 +93,15 @@ You can change some aspects of the configuration of the remote debugger after yo
For a listing of the port numbers used by default, see [Remote Debugger Port Assignments](../debugger/remote-debugger-port-assignments.md).

> [!WARNING]
> You can choose to run the remote tools in No Authentication mode, but this mode is strongly discouraged. There is no network security when you run in this mode. Choose the No Authentication mode only if you are sure that the network is not at risk from malicious or hostile traffic.
> You can choose to run the remote tools in No Authentication mode, but this mode is strongly discouraged. There's no network security when you run in this mode. Choose the No Authentication mode only if you're sure that the network isn't at risk from malicious or hostile traffic.
## <a name="bkmk_configureService"></a> (Optional) Configure the remote debugger as a service

For debugging in ASP.NET and other server environments, you must either run the remote debugger as an Administrator or, if you want it always running, run the remote debugger as a service.

If you want to configure the remote debugger as a service, follow these steps.

1. Find the **Remote Debugger Configuration Wizard** (rdbgwiz.exe). (This is a separate application from the Remote Debugger.) It is available only when you install the remote tools. It is not installed with Visual Studio.
1. Find the **Remote Debugger Configuration Wizard** (rdbgwiz.exe). (This is a separate application from the Remote Debugger.) It is available only when you install the remote tools. It isn't installed with Visual Studio.

2. Start running the configuration wizard. When the first page comes up, click **Next**.

Expand All @@ -113,7 +113,7 @@ For debugging in ASP.NET and other server environments, you must either run the

5. Select the type of network that you want the remote tools to communicate with. At least one network type must be selected. If the computers are connected through a domain, you should choose the first item. If the computers are connected through a workgroup or homegroup, you should choose the second or third items. Click **Next**.

6. If the service can be started, you will see **You have successfully completed the Visual Studio Remote Debugger Configuration Wizard**. If the service cannot be started, you will see **Failed to complete the Visual Studio Remote Debugger Configuration Wizard**. The page also gives some tips to follow to get the service to start.
6. If the service can be started, you'll see **You have successfully completed the Visual Studio Remote Debugger Configuration Wizard**. If the service can't be started, you'll see **Failed to complete the Visual Studio Remote Debugger Configuration Wizard**. The page also gives some tips to follow to get the service to start.

7. Click **Finish**.

Expand Down
8 changes: 5 additions & 3 deletions docs/debugger/using-the-parallel-stacks-window.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "View threads in the Parallel Stacks window"
description: Use Parallel Stacks to help debug multithreaded applications. You can view stack information for all threads, and task-centered call stack information.
ms.date: "03/05/2024"
ms.date: "01/22/2025"
ms.topic: "conceptual"
f1_keywords:
- "vs.debug.parallelstacks"
Expand Down Expand Up @@ -148,7 +148,7 @@ When the **Threads** view graph is too large to fit into the window, a **Bird's

::: moniker range="vs-2019"

The following illustration shows one thread that goes from Main to a Managed to Native code transition. Six threads are in the current method. One continues to Thread.Sleep, and another continues to Console.WriteLine and then to SyncTextWriter.WriteLine.
The following illustration shows one thread that goes from Main to a Managed to Native code transition. Six threads are in the current method. Two threads continue to Thread.Sleep, and two continue to Console.WriteLine and the current thread continues to SyncTextWriter.WriteLine.

![Screenshot of Threads view in Parallel Stacks window.](../debugger/media/parallel-stack1.png "Threads view in Parallel Stacks window.")

Expand All @@ -167,7 +167,7 @@ The following table describes the main features of the **Threads** view:

::: moniker range=">=vs-2022"

The following illustration shows one thread that goes from Main to a Managed to Native code transition. Five threads are in the current method. One continues to ServerClass.InstanceMethod, and another continues to Worker.Thread.Start and then to StartupHook.Initialize.AnonymousMethod.
The following illustration shows the Main thread in a Managed to Native code transition. Five threads are in the current method. Four threads continue executing in the S.C method context, while one worker thread continues in a Managed to Native code transition, setting the name on a worker thread.

[![Screenshot of Threads view in Parallel Stacks window 2022.](../debugger/media/vs-2022/parallel-stacks-toolbar-threads-view.png "Threads view in Parallel Stacks window.")](../debugger/media/vs-2022/parallel-stacks-toolbar-threads-view.png#lightbox)

Expand All @@ -181,7 +181,9 @@ The following table describes the main features of the **Threads** view:
|4|Node header|Shows the number of processes/threads, thread name, and thread ID for the node.|
|5|Method|Represents one or more stack frames in the same method.|
|6|Tooltip on method|Appears when you hover over a method. In **Threads** view, the tooltip shows all threads, in a table similar to the **Threads** window. |
|7|Thread description|AI-generated description of the thread. Starting in Visual Studio 2022 version 17.13 Preview 1, this description is present when [Copilot](../ide/visual-studio-github-copilot-install-and-states.md) is installed and activated. |
::: moniker-end

## Tasks view
If your app uses <xref:System.Threading.Tasks.Task?displayProperty=fullName> objects (managed code) or `task_handle` objects (native code) to express parallelism, you can use **Tasks** view. **Tasks** view shows call stacks of tasks instead of threads.

Expand Down
2 changes: 1 addition & 1 deletion docs/debugger/view-data-in-tabular-visualizer.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Starting in Visual Studio 2022 version 17.11, you can directly change the **Expr

Starting in Visual Studio 2022 version 17.12 Preview 3, you get IntelliSense support to help you edit the expression.

Starting in Visual Studio 2022 version 17.12 Preview 2, you can get AI assistance to edit the LINQ expression. If you have Copilot activated, click the GitHub [Copilot](../ide/visual-studio-github-copilot-extension.md) icon to open Copilot Chat.
Starting in Visual Studio 2022 version 17.12 Preview 2, you can get AI assistance to edit the LINQ expression. If you have Copilot activated, click the GitHub [Copilot](../ide/visual-studio-github-copilot-install-and-states.md) icon to open Copilot Chat.

:::image type="content" source="../debugger/media/vs-2022/debug-ienumerable-visualizer-edit-expression-copilot.png" alt-text="Screenshot of Copilot button to get help to edit the expression.":::

Expand Down
5 changes: 2 additions & 3 deletions docs/ide/copilot-free-plan.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'GitHub Copilot Free in Visual Studio'
description: Use GitHub Copilot Completions, Chat, and Edits for free in Visual Studio.
ms.date: 1/22/2025
ms.date: 1/23/2025
ms.topic: overview
author: anandmeg
ms.author: meghaanand
Expand All @@ -24,8 +24,7 @@ To get started with Copilot Free in Visual Studio, you need:

Set up Copilot Free using Visual Studio as follows:

1. In Visual Studio, select the **GitHub Copilot** badge in the upper-right corner of the IDE.
1. Select **Open Chat Window** from the dropdown.
1. Use **Ctrl+\\** to open the chat window in Visual Studio. You can also select the **GitHub Copilot** badge in the upper-right corner of the IDE, and then select **Open Chat Window** from the dropdown to open chat.
1. Select **Sign up for Copilot Free**.

:::image type="content" source="media/vs-2022/copilot-free/sign-up-for-copilot-free.png" alt-text="Screenshot of Sign up for Copilot Free in the Chat window.":::
Expand Down
2 changes: 1 addition & 1 deletion docs/javascript/npm-package-management.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Manage npm packages for Node.js and ASP.NET Core projects
description: Manage packages in Visual Studio by using the Node.js package manager (npm) for both Node.js and ASP.NET Core applications.
ms.date: "1/30/2024"
ms.date: "1/21/2025"
ms.topic: "how-to"
ms.devlang: javascript
author: "mikejo5000"
Expand Down
2 changes: 1 addition & 1 deletion docs/test/getting-started-with-unit-testing.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Get started with unit testing
description: Use Visual Studio to define and run unit tests to maintain code health, and to find errors and faults before your customers do.
ms.date: 01/19/2024
ms.date: 01/21/2025
ms.topic: tutorial
helpviewer_keywords:
- unit testing, create unit test plans
Expand Down
2 changes: 1 addition & 1 deletion docs/test/run-unit-tests-with-test-explorer.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Run Unit Tests with Test Explorer
description: Run tests by using Test Explorer in Visual Studio, enable automatic tests after build, view results, group and filter the test list, create playlists, and use shortcuts.
ms.date: 12/3/2024
ms.date: 1/21/2025
ms.topic: how-to
author: mikejo5000
ms.author: mikejo
Expand Down

0 comments on commit 5379086

Please sign in to comment.