Browser Launch
Addfox can automatically launch the browser and load the extension during development for improved efficiency.
Quick Start
Run the dev command:
On first start, the dev server will automatically:
- Build the extension
- Launch the browser
- Load the development extension
Chromium-based Browsers
Addfox natively supports the following Chromium-based browsers:
Launch Chromium Browsers
Chromium Browser Path Configuration
If the browser is not in the default location, specify browserPath in config:
Platform Examples
macOS:
Windows:
Linux:
Chromium User Data Cache
By default, a new user data directory is used on each start. To preserve data (e.g., stay logged in):
Or enable in config:
User data is saved in .addfox/cache/ directory.
Firefox
Firefox dev mode uses the web-ext tool to manage extension lifecycle.
Launch Firefox
Firefox Features
- Extension reload is handled by
web-ext, not Addfox's WebSocket - Automatically opens Firefox and loads the extension
- Supports auto-reload on file changes
Firefox Path Configuration
Info
Firefox profile is automatically managed by web-ext, no manual cache configuration needed.
Debugging Tips
View Service Worker
- Open
chrome://extensions/ - Find the extension under development
- Click "Service Worker" to view background script console
View Content Script
- Right-click on the webpage → Inspect
- Switch to Console panel
- Select the extension's context
Use Error Monitor
Enable monitoring panel to capture errors from all entries:
Related Configuration
browserPath- Browser executable path configurationcache- Cache configurationhotReload- Hot reload configurationdebug- Error monitoring configuration

