From 6e3b3fa5a2a7d887395a4a7143e0f2893089360d Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 20 Aug 2014 10:01:43 +0800 Subject: [PATCH] Add "Debugging browser process" chapter. --- docs/README.md | 1 + docs/tutorial/debugging-browser-process.md | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 docs/tutorial/debugging-browser-process.md diff --git a/docs/README.md b/docs/README.md index 6d2ec76a73d..aaf27d6d95a 100644 --- a/docs/README.md +++ b/docs/README.md @@ -3,6 +3,7 @@ * [Quick start](tutorial/quick-start.md) * [Application distribution](tutorial/application-distribution.md) * [Use native node modules](tutorial/use-native-node-modules.md) +* [Debugging browser process](tutorial/debugging-browser-process.md) ## API references diff --git a/docs/tutorial/debugging-browser-process.md b/docs/tutorial/debugging-browser-process.md new file mode 100644 index 00000000000..0e4a3ebbf5f --- /dev/null +++ b/docs/tutorial/debugging-browser-process.md @@ -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.