You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/en/learn/getting-started/debugging.md
+3-11Lines changed: 3 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
---
2
-
title: Debugging - Getting Started
3
-
layout: docs.hbs
2
+
title: Debugging Node.js
3
+
layout: learn.hbs
4
4
---
5
5
6
-
# Debugging Guide
6
+
# Debugging Node.js
7
7
8
8
This guide will help you get started debugging your Node.js apps and scripts.
9
9
@@ -22,8 +22,6 @@ Node.js will also start listening for debugging messages if it receives a
22
22
earlier, this activates the legacy Debugger API. In Node.js 8 and later, it will
23
23
activate the Inspector API.
24
24
25
-
---
26
-
27
25
## Security Implications
28
26
29
27
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
111
109
- From a .js file, choose "Debug As... > Node program", or
112
110
- Create a Debug Configuration to attach debugger to running Node.js application (already started with `--inspect`).
113
111
114
-
---
115
-
116
112
## Command-line options
117
113
118
114
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:
126
122
| node inspect script.js | Spawn child process to run user's script under --inspect flag; and use main process to run CLI debugger. |
127
123
| 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) |
128
124
129
-
---
130
-
131
125
## Enabling remote debugging scenarios
132
126
133
127
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
156
150
a debugger such as Chrome DevTools or Visual Studio Code to localhost:9221,
157
151
which should be able to debug as if the Node.js application was running locally.
158
152
159
-
---
160
-
161
153
## Legacy Debugger
162
154
163
155
**The legacy debugger has been deprecated as of Node.js 7.7.0. Please use
0 commit comments