From 165da22a6f8e5680c1282fd171543458d78f4d09 Mon Sep 17 00:00:00 2001 From: Shing Lyu Date: Tue, 3 May 2016 06:31:38 -0700 Subject: [PATCH] servo: Merge #10914 - Added documents for commandline arguments (from shinglyu:docs); r=aneeshusa An initial draft for #10878 Source-Repo: https://github.com/servo/servo Source-Revision: 3f2ceeff5dd1966dafe34381e20ec405ab72ccee --- servo/docs/COMMAND_LINE_ARGS.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 servo/docs/COMMAND_LINE_ARGS.md diff --git a/servo/docs/COMMAND_LINE_ARGS.md b/servo/docs/COMMAND_LINE_ARGS.md new file mode 100644 index 000000000000..b8898e3f4f4b --- /dev/null +++ b/servo/docs/COMMAND_LINE_ARGS.md @@ -0,0 +1,32 @@ +Command Line Arguments +======================== +# General + +You can see available commands with: +``` +./mach -h +./mach -h +``` +Only arguments that need more explanation will be documented here. + +# Run +## Enable Experimental Features +Use `--pref` to enable experimental features like experimental DOM API, JavaScript API and CSS properties. + +e.g. To enable `flex` and `flex-direction` css properties: +``` +./mach run -d -- --pref layout.flex.enabled --pref layout.flex-direction.enabled ... +``` + +You can find all the available preferences at [resources/prefs.json](http://mxr.mozilla.org/servo/source/resources/prefs.json). + +# Debugging +## Remote Debugging +Use `--devtools 6000` to start the devtools server on port 6000. + +e.g. +``` +./mach run -d --devtools 6000 https://servo.org +``` + +To connect to the server, follow [this guide](https://developer.mozilla.org/en-US/docs/Tools/Remote_Debugging/Debugging_Firefox_Desktop#Connect).