From cfdea04c83b5ddaf305e54211317ee5dffa65905 Mon Sep 17 00:00:00 2001 From: Dan Burzo Date: Thu, 13 Oct 2016 12:53:33 +0300 Subject: [PATCH 1/3] Added note about sending flags to Node.js, additional debug flags --- docs/api/chrome-command-line-switches.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 From af17253a729f8da1c793390aa7fcfe0e1071244c Mon Sep 17 00:00:00 2001 From: Dan Burzo Date: Thu, 13 Oct 2016 13:03:29 +0300 Subject: [PATCH 2/3] Changed link to Node docs in MD reference format --- docs/api/chrome-command-line-switches.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/api/chrome-command-line-switches.md b/docs/api/chrome-command-line-switches.md index a46de7c90ed..e0673892a04 100644 --- a/docs/api/chrome-command-line-switches.md +++ b/docs/api/chrome-command-line-switches.md @@ -45,7 +45,7 @@ Electron if you want to enable the `flags` in the main process. $ 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. +See the [Node documentation][node-cli] 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` @@ -186,3 +186,4 @@ This switch only works when `--enable-logging` is also passed. [ready]: app.md#event-ready [play-silent-audio]: https://github.com/atom/atom/pull/9485/files [debugging-main-process]: ../tutorial/debugging-main-process.md +[node-cli]: https://nodejs.org/api/cli.html From 21cfd330c04e06fafd725d387d0c8e662d41ac74 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 13 Oct 2016 14:11:56 -0700 Subject: [PATCH 3/3] Switch from node man to node --help --- docs/api/chrome-command-line-switches.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/chrome-command-line-switches.md b/docs/api/chrome-command-line-switches.md index e0673892a04..7920fe5e20e 100644 --- a/docs/api/chrome-command-line-switches.md +++ b/docs/api/chrome-command-line-switches.md @@ -45,7 +45,7 @@ Electron if you want to enable the `flags` in the main process. $ electron --js-flags="--harmony_proxies --harmony_collections" your-app ``` -See the [Node documentation][node-cli] 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. +See the [Node documentation][node-cli] or run `node --help` 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`