blob: a13d541a2188c407772bcd3d5a452e0b03bb23ff (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 Web VR and Bluetooth features:
```
./mach run -d -- --pref dom.webvr.enabled --pref dom.bluetooth.enabled ...
```
You can find all the available preferences at [resources/prefs.json](https://dxr.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).
|