docs: Atom Shell => Electron

This commit is contained in:
Cheng Zhao 2015-04-16 11:31:12 +08:00
parent d878bd33d7
commit d2682233fd
29 changed files with 132 additions and 130 deletions

View file

@ -2,14 +2,14 @@
The devtools of browser window can only debug the renderer process scripts.
(I.e. the web pages.) In order to provide a way to debug the scripts of
the main process, atom-shell has provided the `--debug` and `--debug-brk`
the main process, Electron has provided the `--debug` and `--debug-brk`
switches.
## Command line switches
### `--debug=[port]`
When this switch is used atom-shell would listen for V8 debugger protocol
When this switch is used Electron would listen for V8 debugger protocol
messages on `port`, the `port` is `5858` by default.
### `--debug-brk=[port]`
@ -28,18 +28,18 @@ with node-inspector, and the main process would crash if you inspect the
$ node-inspector
```
### 2. Enable debug mode for atom-shell
### 2. Enable debug mode for Electron
You can either start atom-shell with a debug flag like:
You can either start Electron with a debug flag like:
```bash
$ atom-shell --debug=5858 your/app
$ electron --debug=5858 your/app
```
or, to pause your script on the first line:
```bash
$ atom-shell --debug-brk=5858 your/app
$ electron --debug-brk=5858 your/app
```
### 3. Load the debugger UI