servo/docs/COMMAND_LINE_ARGS.md
Divyanshu Agrawal 75f50acda8 docs: Fix link to experimental CLI prefs list
Fixes: #28612.

Signed-off-by: Divyanshu Agrawal <agrawal-d@outlook.com>
2021-10-15 19:03:28 +05:30

884 B

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.

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.