diff --git a/locale/en/docs/guides/debugging-getting-started.md b/locale/en/docs/guides/debugging-getting-started.md index 783791ff77543..c4f9670b54663 100644 --- a/locale/en/docs/guides/debugging-getting-started.md +++ b/locale/en/docs/guides/debugging-getting-started.md @@ -70,11 +70,16 @@ info on these follows: * **Option 3**: Install the Chrome Extension NIM (Node Inspector Manager): https://chrome.google.com/webstore/detail/nim-node-inspector-manage/gnhhdgbaldcilmgcpfddgdbkhjohddkj -#### [VS Code](https://github.com/microsoft/vscode) 1.10+ +#### [Visual Studio Code](https://github.com/microsoft/vscode) 1.10+ * In the Debug panel, click the settings icon to open `.vscode/launch.json`. Select "Node.js" for initial setup. +#### [Visual Studio](https://github.com/Microsoft/nodejstools) 2017 + +* Choose "Debug > Start Debugging" from the menu or hit F5. +* [Detailed instructions](https://github.com/Microsoft/nodejstools/wiki/Debugging). + #### [JetBrains WebStorm](https://www.jetbrains.com/webstorm/) 2017.1+ and other JetBrains IDEs * Create a new Node.js debug configuration and hit Debug. `--inspect` will be used @@ -91,7 +96,7 @@ info on these follows: The following table lists the impact of various runtime flags on debugging: - +
@@ -142,6 +147,16 @@ The following table lists the impact of various runtime flags on debugging: + + + +
FlagMeaning
--inspect
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)
  • +
+
--- diff --git a/locale/en/docs/inspector.md b/locale/en/docs/inspector.md index 95da0cd281425..5ee054bd7d633 100644 --- a/locale/en/docs/inspector.md +++ b/locale/en/docs/inspector.md @@ -5,118 +5,4 @@ layout: docs.hbs # Debugging Node.js Apps -Many tools and libraries are available to help you debug your Node.js apps. Some -of these are listed below. - -To connect manually rather than with a tool, pass the **--inspect** flag and -connect to the printed URL. - -If a process was started without `--inspect`, signal it with SIGUSR1 to -activate the debugger and print the connection URL. - ---- - -## Inspector Tools & Clients - -These commercial and open source tools make debugging Node.js apps easier. - -### [node-inspect](https://github.com/nodejs/node-inspect) - -* A CLI debugger developed at . -* Bundled with Node and invoked with `node inspect myscript.js`. -* Can also be installed independently with `npm install -g node-inspect` - and invoked with `node-inspect myscript.js`. - -### [Chrome DevTools](https://github.com/ChromeDevTools/devtools-frontend) - -* **Option 1**: Open `chrome://inspect` in a Chromium-based - browser. Click the "Open dedicated DevTools for Node" link. -* **Option 2**: Install the Chrome Extension NIM (Node Inspector Manager): - https://chrome.google.com/webstore/detail/nim-node-inspector-manage/gnhhdgbaldcilmgcpfddgdbkhjohddkj - -### [VS Code](https://github.com/microsoft/vscode) 1.10+ - -* In the Debug panel, click the settings icon to open `.vscode/launch.json`. - Select "Node.js" for initial setup. - -### [Visual Studio](https://github.com/Microsoft/nodejstools) - -* Choose "Debug > Start Debugging" from the menu or hit F5. -* [Detailed instructions](https://github.com/Microsoft/nodejstools/wiki/Debugging). - -### [JetBrains WebStorm](https://www.jetbrains.com/webstorm/) 2017.1+ and other JetBrains IDEs - -* Create a new Node.js debug configuration and hit Debug. - -### [chrome-remote-interface](https://github.com/cyrus-and/chrome-remote-interface) - -* Library to ease connections to Inspector Protocol endpoints. - ---- - -## Command-line options - -The following table lists the impact of various runtime flags on debugging: - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FlagMeaning
--inspect -
    -
  • Enable inspector agent
  • -
  • Listen on default address and port (127.0.0.1:9229)
  • -
-
--inspect=[host:port] -
    -
  • Enable inspector agent
  • -
  • Bind to address or hostname host (default: 127.0.0.1)
  • -
  • Listen on port port (default: 9229)
  • -
-
--inspect-brk -
    -
  • Enable inspector agent
  • -
  • Listen on default address and port (127.0.0.1:9229)
  • -
  • Break before user code starts
  • -
-
--inspect-brk=[host:port] -
    -
  • Enable inspector agent
  • -
  • Bind to address or hostname host (default: 127.0.0.1)
  • -
  • Listen on port port (default: 9229)
  • -
  • Break before user code starts
  • -
-
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)
  • -
-
+Page has been moved to [Guides: Debugging - Getting Started](./guides/debugging-getting-started/). diff --git a/locale/en/site.json b/locale/en/site.json index 2204445d3ae15..8de6e26895861 100644 --- a/locale/en/site.json +++ b/locale/en/site.json @@ -85,10 +85,6 @@ "link": "docs/es6", "text": "ES6 and beyond" }, - "inspector": { - "link": "docs/inspector", - "text": "Inspector" - }, "api-lts": { "link": "/dist/latest-%ver-major%/docs/api", "subtext": "LTS",