From ea1197f4dc0c87f5c5c9f84691dd8a51eed0d190 Mon Sep 17 00:00:00 2001 From: ochameau Date: Thu, 1 Sep 2022 17:50:29 +0200 Subject: [PATCH] Document web-ext run --devtools command line argument Document the new command line argument introduced in https://github.com/mozilla/web-ext/pull/2488 --- .../develop/web-ext-command-reference.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/content/documentation/develop/web-ext-command-reference.md b/src/content/documentation/develop/web-ext-command-reference.md index ac754b70a..9ef510bbe 100644 --- a/src/content/documentation/develop/web-ext-command-reference.md +++ b/src/content/documentation/develop/web-ext-command-reference.md @@ -189,6 +189,18 @@ Environment variable: `$WEB_EXT_BROWSER_CONSOLE=true` Note: The browser console may not show all debugging output from content-scripts. Use the web console when debugging content-scripts. + +#### `--devtools` + +This opens the Developer Tools for the installed extension on startup. See [this documentation](https://extensionworkshop.com/documentation/develop/debugging/) for more information. Example: + +```shell +web-ext run --devtools +``` + +Note: The opened Developer Tools may not show all debugging output from content-scripts. Use the web console when debugging content-scripts. +Note #2: This option only works with Firefox 106 and newer. +
#### `--firefox`, `-f`