diff --git a/i18n/locales/en.json b/i18n/locales/en.json index 34be0bf486967..19bbed207b86b 100644 --- a/i18n/locales/en.json +++ b/i18n/locales/en.json @@ -39,7 +39,8 @@ "ecmascript2015Es6AndBeyond": "ECMAScript 2015 (ES6) and beyond", "nodejsTheDifferenceBetweenDevelopmentAndProduction": "Node.js, the difference between development and production", "nodejsWithTypescript": "Node.js with TypeScript", - "nodejsWithWebassembly": "Node.js with WebAssembly" + "nodejsWithWebassembly": "Node.js with WebAssembly", + "debugging": "Debugging Node.js" } }, "asynchronousWork": { diff --git a/navigation.json b/navigation.json index 93a2f9dd4c033..0299c205d3e99 100644 --- a/navigation.json +++ b/navigation.json @@ -120,6 +120,10 @@ "nodejsWithWebassembly": { "link": "/learn/getting-started/nodejs-with-webassembly", "label": "components.navigation.learn.gettingStarted.links.nodejsWithWebassembly" + }, + "debugging": { + "link": "/learn/getting-started/debugging", + "label": "components.navigation.learn.gettingStarted.links.debugging" } } }, diff --git a/pages/en/guides/index.md b/pages/en/guides/index.md index 368d5a52d1761..f9c2942ab0665 100644 --- a/pages/en/guides/index.md +++ b/pages/en/guides/index.md @@ -9,7 +9,6 @@ layout: docs.hbs ## General -- [Debugging - Getting Started](/guides/debugging-getting-started/) - [Easy profiling for Node.js Applications](/guides/simple-profiling/) - [Diagnostics - Flame Graphs](/guides/diagnostics-flamegraph/) - [Diagnostics - User Journey](/guides/diagnostics/) diff --git a/pages/en/guides/debugging-getting-started.md b/pages/en/learn/getting-started/debugging.md similarity index 99% rename from pages/en/guides/debugging-getting-started.md rename to pages/en/learn/getting-started/debugging.md index 39afa71852f4f..14971330c39f7 100644 --- a/pages/en/guides/debugging-getting-started.md +++ b/pages/en/learn/getting-started/debugging.md @@ -1,9 +1,9 @@ --- -title: Debugging - Getting Started -layout: docs.hbs +title: Debugging Node.js +layout: learn.hbs --- -# Debugging Guide +# Debugging Node.js This guide will help you get started debugging your Node.js apps and scripts. @@ -22,8 +22,6 @@ Node.js will also start listening for debugging messages if it receives a earlier, this activates the legacy Debugger API. In Node.js 8 and later, it will activate the Inspector API. ---- - ## Security Implications 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 - From a .js file, choose "Debug As... > Node program", or - Create a Debug Configuration to attach debugger to running Node.js application (already started with `--inspect`). ---- - ## Command-line options 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: | node inspect script.js | Spawn child process to run user's script under --inspect flag; and use main process to run CLI debugger. | | 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) | ---- - ## Enabling remote debugging scenarios 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 a debugger such as Chrome DevTools or Visual Studio Code to localhost:9221, which should be able to debug as if the Node.js application was running locally. ---- - ## Legacy Debugger **The legacy debugger has been deprecated as of Node.js 7.7.0. Please use