Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added documents for commandline arguments #10914

Merged
merged 1 commit into from May 3, 2016
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Added documents for commandline arguments

  • Loading branch information
shinglyu committed May 3, 2016
commit 998afeed48bfbaeb8961c7dd94886163df83e433
@@ -0,0 +1,32 @@
Command Line Arguments
========================
# General

You can see available commands with:
```
./mach -h
./mach <sub-command> -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).
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.