Skip to content

Commit 47d2cb5

Browse files
committed
Update debug JS article
1 parent 6927cdf commit 47d2cb5

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/javascript/debug-nodejs.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,13 @@ Visual Studio provides client-side debugging support only for Chrome and Microso
6161

6262
For more detailed information, see this [blog post for Google Chrome](https://devblogs.microsoft.com/aspnet/client-side-debugging-of-asp-net-projects-in-google-chrome). For debugging TypeScript in ASP.NET Core, see [Add TypeScript to an existing ASP.NET Core app](tutorial-aspnet-with-typescript.md).
6363

64+
::: moniker range=">=vs-2022"
65+
- For *.esproj* projects in Visual Studio 2022, you can debug client-side script using standard debugging methods to hit breakpoints. To configure debugging, you can modify *launch.json* settings, which work the same as in VS Code. For more information about debugger configuration options, see [Launch configuration attributes](https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_launch-configuration-attributes).
66+
::: moniker-end
67+
68+
::: moniker range="vs-2019"
6469
- For Node.js applications and other JavaScript projects, follow the steps described in this article.
70+
::: moniker-end
6571

6672
>[!NOTE]
6773
> For ASP.NET and ASP.NET Core, debugging embedded scripts in *.CSHTML* files is not supported. JavaScript code must be in separate files to enable debugging.
@@ -72,7 +78,11 @@ If your source is minified or created by a transpiler like TypeScript or Babel,
7278

7379
For help with generating source maps, see [Generate source maps for debugging](#generate_source_maps).
7480

75-
### <a name="prepare_the_browser_for_debugging"></a> Prepare the browser for debugging
81+
### <a name="prepare_the_browser_for_debugging"></a> Manually configure the browser for debugging
82+
83+
::: moniker range=">=vs-2022"
84+
In Visual Studio 2022, the procedure described in this section is available only in ASP.NET and ASP.NET Core applications. It is required only in uncommon scenarios where you need to customize browser settings.
85+
::: moniker-end
7686

7787
For this scenario, use either Microsoft Edge or Chrome.
7888

0 commit comments

Comments
 (0)