]> khamidou — GitHub mirrors - electron.git/commitdiff
Add "Debugging browser process" chapter.
authorCheng Zhao <zcbenz@gmail.com>
Wed, 20 Aug 2014 02:01:43 +0000 (10:01 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 20 Aug 2014 02:01:43 +0000 (10:01 +0800)
docs/README.md
docs/tutorial/debugging-browser-process.md [new file with mode: 0644]

index 6d2ec76a73db68bbd860ee0f75a333427ae6dfe6..aaf27d6d95a9962ac5656d61340faaeaaaa2c2ab 100644 (file)
@@ -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 (file)
index 0000000..0e4a3eb
--- /dev/null
@@ -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.