Added note about sending flags to Node.js, additional debug flags
authorDan Burzo <danburzo@gmail.com>
Thu, 13 Oct 2016 09:53:33 +0000 (12:53 +0300)
committerDan Burzo <danburzo@gmail.com>
Thu, 13 Oct 2016 09:54:22 +0000 (12:54 +0300)
docs/api/chrome-command-line-switches.md

index 7d840f1a3e2356dbcec23eda601d7ed9168873c1..a46de7c90ed5d7fe2e4ebb5df7e76c39c8e0c5d8 100644 (file)
@@ -28,19 +28,25 @@ Disables the disk cache for HTTP requests.
 
 Disable HTTP/2 and SPDY/3.1 protocols.
 
+## --debug=`port` and --debug-brk=`port`
+
+Debug-related flags, see the [Debugging the Main Process][debugging-main-process] guide for details.
+
 ## --remote-debugging-port=`port`
 
 Enables remote debugging over HTTP on the specified `port`.
 
 ## --js-flags=`flags`
 
-Specifies the flags passed to JS engine. It has to be passed when starting
+Specifies the flags passed to the Node JS engine. It has to be passed when starting
 Electron if you want to enable the `flags` in the main process.
 
 ```bash
 $ electron --js-flags="--harmony_proxies --harmony_collections" your-app
 ```
 
+See the [Node documentation](https://nodejs.org/api/cli.html) or run `node man` in your terminal for a list of available flags. Additionally, run `node --v8-options` to see a list of flags that specifically refer to Node's V8 JavaScript engine.
+
 ## --proxy-server=`address:port`
 
 Use a specified proxy server, which overrides the system setting. This switch
@@ -179,3 +185,4 @@ This switch only works when `--enable-logging` is also passed.
 [append-switch]: app.md#appcommandlineappendswitchswitch-value
 [ready]: app.md#event-ready
 [play-silent-audio]: https://github.com/atom/atom/pull/9485/files
+[debugging-main-process]: ../tutorial/debugging-main-process.md