diff --git a/docs/api/chrome-command-line-switches.md b/docs/api/chrome-command-line-switches.md index 7d840f1a3e2..a46de7c90ed 100644 --- a/docs/api/chrome-command-line-switches.md +++ b/docs/api/chrome-command-line-switches.md @@ -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