Add "Debugging browser process" chapter.
This commit is contained in:
parent
c12c0363a0
commit
6e3b3fa5a2
2 changed files with 16 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
* [Quick start](tutorial/quick-start.md)
|
* [Quick start](tutorial/quick-start.md)
|
||||||
* [Application distribution](tutorial/application-distribution.md)
|
* [Application distribution](tutorial/application-distribution.md)
|
||||||
* [Use native node modules](tutorial/use-native-node-modules.md)
|
* [Use native node modules](tutorial/use-native-node-modules.md)
|
||||||
|
* [Debugging browser process](tutorial/debugging-browser-process.md)
|
||||||
|
|
||||||
## API references
|
## API references
|
||||||
|
|
||||||
|
|
15
docs/tutorial/debugging-browser-process.md
Normal file
15
docs/tutorial/debugging-browser-process.md
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# Debugging browser process
|
||||||
|
|
||||||
|
The devtools of browser window can only debug the scripts of the web pages
|
||||||
|
(e.g. the renderer process), in order to provide a way to debug the scripts of
|
||||||
|
the browser side (e.g. the browser process), atom-shell has provided the
|
||||||
|
`--debug` and `--debug-brk` switches.
|
||||||
|
|
||||||
|
## `--debug=[port]`
|
||||||
|
|
||||||
|
When this switch is used atom-shell would listen for V8 debugger protocol on
|
||||||
|
`port`, the `port` is `5858` by default.
|
||||||
|
|
||||||
|
## `debug-brk=[port]`
|
||||||
|
|
||||||
|
Like `--debug` but pauses the script on the first line.
|
Loading…
Reference in a new issue