servo/docs/COMMAND_LINE_ARGS.md
Okhuomon Ajayi 0327d4638b
Adjust the language used in some of the documentation (#31583)
* fixed a typo in the Android setup command

* Fix typo in documentation for command-line arguments

* Fix style and formatting issues in the Shell Scripts section of the documentation

* Update style.md

* Fixed various  inconsistencies

* Fixed various inconsistencies

* Update webxr.md

* Update style.md

* Update COMMAND_LINE_ARGS.md

* Update README.md

Co-authored-by: Martin Robinson <mrobinson@igalia.com>

* Update docs/COMMAND_LINE_ARGS.md

---------

Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2024-03-08 14:11:28 +00:00

886 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 APIs, JavaScript APIs 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.