Skip to content

Commit a059d56

Browse files
authored
docs(learn): Migrate the legacy guide "Debugging - Getting Started" to the learn section (#6265)
* docs(learn): Migrate the legacy guide Debugging - Getting Started to the learn section * docs(learn): change debugging guide title and remove hr
1 parent c6dd393 commit a059d56

File tree

4 files changed

+9
-13
lines changed

4 files changed

+9
-13
lines changed

i18n/locales/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
"ecmascript2015Es6AndBeyond": "ECMAScript 2015 (ES6) and beyond",
4040
"nodejsTheDifferenceBetweenDevelopmentAndProduction": "Node.js, the difference between development and production",
4141
"nodejsWithTypescript": "Node.js with TypeScript",
42-
"nodejsWithWebassembly": "Node.js with WebAssembly"
42+
"nodejsWithWebassembly": "Node.js with WebAssembly",
43+
"debugging": "Debugging Node.js"
4344
}
4445
},
4546
"asynchronousWork": {

navigation.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@
120120
"nodejsWithWebassembly": {
121121
"link": "/learn/getting-started/nodejs-with-webassembly",
122122
"label": "components.navigation.learn.gettingStarted.links.nodejsWithWebassembly"
123+
},
124+
"debugging": {
125+
"link": "/learn/getting-started/debugging",
126+
"label": "components.navigation.learn.gettingStarted.links.debugging"
123127
}
124128
}
125129
},

pages/en/guides/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ layout: docs.hbs
99
1010
## General
1111

12-
- [Debugging - Getting Started](/guides/debugging-getting-started/)
1312
- [Easy profiling for Node.js Applications](/guides/simple-profiling/)
1413
- [Diagnostics - Flame Graphs](/guides/diagnostics-flamegraph/)
1514
- [Diagnostics - User Journey](/guides/diagnostics/)

pages/en/guides/debugging-getting-started.md renamed to pages/en/learn/getting-started/debugging.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
title: Debugging - Getting Started
3-
layout: docs.hbs
2+
title: Debugging Node.js
3+
layout: learn.hbs
44
---
55

6-
# Debugging Guide
6+
# Debugging Node.js
77

88
This guide will help you get started debugging your Node.js apps and scripts.
99

@@ -22,8 +22,6 @@ Node.js will also start listening for debugging messages if it receives a
2222
earlier, this activates the legacy Debugger API. In Node.js 8 and later, it will
2323
activate the Inspector API.
2424

25-
---
26-
2725
## Security Implications
2826

2927
Since the debugger has full access to the Node.js execution environment, a
@@ -111,8 +109,6 @@ Several commercial and open source tools can also connect to the Node.js Inspect
111109
- From a .js file, choose "Debug As... > Node program", or
112110
- Create a Debug Configuration to attach debugger to running Node.js application (already started with `--inspect`).
113111

114-
---
115-
116112
## Command-line options
117113

118114
The following table lists the impact of various runtime flags on debugging:
@@ -126,8 +122,6 @@ The following table lists the impact of various runtime flags on debugging:
126122
| node inspect script.js | Spawn child process to run user's script under --inspect flag; and use main process to run CLI debugger. |
127123
| node inspect --port=xxxx script.js | Spawn child process to run user's script under --inspect flag; and use main process to run CLI debugger. Listen on port port (default: 9229) |
128124

129-
---
130-
131125
## Enabling remote debugging scenarios
132126

133127
We recommend that you never have the debugger listen on a public IP address. If
@@ -156,8 +150,6 @@ machine will be forwarded to port 9229 on remote.example.com. You can now attach
156150
a debugger such as Chrome DevTools or Visual Studio Code to localhost:9221,
157151
which should be able to debug as if the Node.js application was running locally.
158152

159-
---
160-
161153
## Legacy Debugger
162154

163155
**The legacy debugger has been deprecated as of Node.js 7.7.0. Please use

0 commit comments

Comments
 (0)