Skip to content

Commit b374765

Browse files
authored
Merge pull request #5746 from Mikejo5000/mikejo-nodejs
Deleted topics and refactored
2 parents 65acb98 + 55898ce commit b374765

8 files changed

+45
-202
lines changed

.openpublishing.redirection.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,21 @@
10501050
"redirect_url": "/visualstudio/xaml-tools/inspect-xaml-properties-while-debugging",
10511051
"redirect_document_id": true
10521052
},
1053+
{
1054+
"source_path": "docs/debugger/client-side-script-debugging.md",
1055+
"redirect_url": "/visualstudio/debugger/debugging-web-applications",
1056+
"redirect_document_id": true
1057+
},
1058+
{
1059+
"source_path": "docs/debugger/how-to-attach-to-script.md",
1060+
"redirect_url": "/visualstudio/debugger/attach-to-running-processes-with-the-visual-studio-debugger",
1061+
"redirect_document_id": true
1062+
},
1063+
{
1064+
"source_path": "docs/debugger/limitations-on-script-debugging.md",
1065+
"redirect_url": "/visualstudio/debugger/debugging-web-applications",
1066+
"redirect_document_id": false
1067+
},
10531068
{
10541069
"source_path": "docs/designers/keyboard-shortcuts-for-xaml-designer.md",
10551070
"redirect_url": "/visualstudio/xaml-tools/keyboard-shortcuts-for-xaml-designer",

docs/debugger/client-side-script-debugging.md

Lines changed: 0 additions & 62 deletions
This file was deleted.
Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
---
22
title: "Debugging Web Applications | Microsoft Docs"
3-
ms.date: "11/04/2016"
3+
ms.date: "11/05/2019"
44
ms.topic: "conceptual"
5-
dev_langs:
6-
- "CSharp"
7-
- "VB"
8-
- "FSharp"
9-
- "C++"
105
helpviewer_keywords:
116
- "debugging ASP.NET Web applications, about debugging ASP.NET Web applications"
127
- "ASP.NET debugging, Web services"
@@ -20,18 +15,31 @@ ms.workload:
2015
- "multiple"
2116
---
2217
# Debugging Web Applications
23-
This section explains how to debug several types of Web applications.
2418

25-
## In This Section
26-
[Client-Side Script Debugging](../debugger/client-side-script-debugging.md)
27-
Discusses testing scripts and client-side scripts in [!INCLUDE[vstecasp](../code-quality/includes/vstecasp_md.md)] pages.
19+
This article provides links to help you debug different types of web applications.
2820

29-
## Related Sections
30-
[Debug ASP.NET applications](../debugger/how-to-enable-debugging-for-aspnet-applications.md)
31-
Describes the steps that are required to enable debugging of [!INCLUDE[vstecasp](../code-quality/includes/vstecasp_md.md)] applications.
21+
- Debug ASP.NET applications
22+
23+
For steps that are required to enable debugging of [!INCLUDE[vstecasp](../code-quality/includes/vstecasp_md.md)] applications, see [Debug ASP.NET applications](how-to-enable-debugging-for-aspnet-applications.md).
24+
25+
- Debug client-side script in ASP.NET
26+
27+
For required steps, see the blog post [Debug JavaScript in Microsoft Edge](https://devblogs.microsoft.com/visualstudio/debug-javascript-in-microsoft-edge-from-visual-studio/) and this [post for Google Chrome](https://devblogs.microsoft.com/aspnet/client-side-debugging-of-asp-net-projects-in-google-chrome).
28+
29+
- Debug JavaScript and TypeScript
30+
31+
See [Debug JavaScript and TypeScript](../javascript/debug-nodejs.md).
32+
33+
- View script documents
34+
35+
You can see lists of server-side and client-side script documents in the **Solution Explorer** to view. You can open any script document from **Solution Explorer**. For more information, see [How to: View Script Documents](../debugger/how-to-view-script-documents.md).
36+
37+
- Debugging AJAX Script Applications
38+
39+
AJAX-enabled Web applications make heavy use of script code and pose special debugging challenges. For information about AJAX debugging techniques, see [Debugging and Tracing Ajax Applications Overview](https://msdn.microsoft.com/Library/92684ea0-7bb4-4a34-9203-3aa6394ce375).
3240

3341
## See also
34-
- [Debugging Web Applications and Script](how-to-enable-debugging-for-aspnet-applications.md)
42+
3543
- [Debugger Settings and Preparation](../debugger/debugger-settings-and-preparation.md)
3644
- [First look at the debugger](../debugger/debugger-feature-tour.md)
3745
- [Debugging in Visual Studio](../debugger/index.yml)

docs/debugger/how-to-attach-to-script.md

Lines changed: 0 additions & 66 deletions
This file was deleted.

docs/debugger/how-to-view-script-documents.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "How to: View Script Documents | Microsoft Docs"
3-
ms.date: "01/08/2019"
3+
ms.date: "11/05/2019"
44
ms.topic: "conceptual"
55
dev_langs:
66
- "CSharp"
@@ -20,6 +20,8 @@ ms.workload:
2020

2121
Server-side script files are visible in Solution Explorer. Client-side script files are visible only when you are in debug mode or break mode. Client-side script files appear in the **Script Documents** node.
2222

23+
For some application types that dynamically generate pages, it is easier to enter break mode and debug when you set a breakpoint from a script document that is loaded in the browser. Similarly, you can add the `debugger` statement from a loaded script document to enter break mode. This article shows how to view these documents.
24+
2325
> [!NOTE]
2426
> Previous to [!INCLUDE[vs_dev11_long](../data-tools/includes/vs_dev11_long_md.md)], client-side script files generated from server-side script appeared in the Script Explorer window.
2527

docs/debugger/limitations-on-script-debugging.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

docs/debugger/toc.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -654,18 +654,8 @@
654654
href: javascript-console-commands.md
655655
- name: Keyboard shortcuts (HTML and JavaScript)
656656
href: keyboard-shortcuts-html-and-javascript.md
657-
- name: Client-side scripts
658-
items:
659-
- name: Client-side script debugging
660-
href: client-side-script-debugging.md
661-
- name: Limitations on script debugging
662-
href: limitations-on-script-debugging.md
663-
- name: Attach (script)
664-
items:
665-
- name: Attach to script
666-
href: how-to-attach-to-script.md
667-
- name: "Warning: Script debugging disabled"
668-
href: warning-script-debugging-disabled.md
657+
- name: "Warning: Script debugging disabled"
658+
href: warning-script-debugging-disabled.md
669659
- name: WCF services
670660
items:
671661
- name: Debug WCF services

docs/javascript/debug-nodejs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@ To attach the debugger from Visual Studio and hit breakpoints in client-side cod
152152

153153
While paused in the debugger, you can examine your app state by hovering over variables and using debugger windows. You can advance the debugger by stepping through code (**F5**, **F10**, and **F11**). For more information on basic debugging features, see [First look at the debugger](../debugger/debugger-feature-tour.md).
154154

155-
You may hit the breakpoint in either the transpiled *.js* file or the source file, depending on which steps you followed previously, along with your environment and browser state. Either way, you can step through code and examine variables.
155+
You may hit the breakpoint in either a transpiled *.js* file or source file, depending on your app type, which steps you followed previously, and other factors such as your browser state. Either way, you can step through code and examine variables.
156156

157-
* If you need to break into code in a TypeScript, JSX, or *.vue* source file and are unable to do it, make sure you that your environment is set up correctly, as described in the [Troubleshooting](#troubleshooting_source_maps) section.
157+
* If you need to break into code in a TypeScript, JSX, or *.vue* source file and are unable to do it, make sure that your environment is set up correctly, as described in the [Troubleshooting](#troubleshooting_source_maps) section.
158158

159159
* If you need to break into code in a transpiled JavaScript file (for example, *app-bundle.js*) and are unable to do it, remove the source map file, *filename.js.map*.
160160

@@ -166,7 +166,7 @@ If you need to break into code in a TypeScript, JSX, or *.vue* source file and a
166166

167167
* Make sure you [start the browser in debug mode](#prepare_the_browser_for_debugging).
168168

169-
* Make sure that your source map file includes the correct reference to your source file and that it doesn't include unsupported prefixes such as *webpack:///*, which prevents the Visual Studio debugger from locating a source file. For example, a reference like *webpack:///.app.tsx* might be corrected to *./app.tsx*. You can do this manually in the source map file or through a custom build configuration. For more information, see [Generate source maps for debugging](#generate_source_maps).
169+
* Make sure that your source map file includes the correct relative path to your source file and that it doesn't include unsupported prefixes such as *webpack:///*, which prevents the Visual Studio debugger from locating a source file. For example, a reference like *webpack:///.app.tsx* might be corrected to *./app.tsx*. You can do this manually in the source map file (which is helpful for testing) or through a custom build configuration. For more information, see [Generate source maps for debugging](#generate_source_maps).
170170

171171
Alternatively, if you need to break into code in a source file (for example, *app.tsx*) and are unable to do it, try using the `debugger;` statement in the source file, or set breakpoints in the Chrome Developer Tools (or F12 Tools for Microsoft Edge) instead.
172172

0 commit comments

Comments
 (0)