Chrome Debug Mode
To record interactions, Reshot needs to control Chrome through its debugging protocol.
Launching Chrome
Use the built-in command to launch Chrome with the correct flags:
Terminal
reshot chromeThis opens a new Chrome window with remote debugging enabled on port 9222.
Options
| Option | Description |
|---|---|
--port | Debug port (default: 9222) |
--user-data-dir | Chrome profile directory |
Example with custom port:
Terminal
reshot chrome --port 9333Important Notes
Using an Existing Chrome Instance
If you prefer to manage Chrome yourself, launch it manually with these flags:
Terminal
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
--remote-debugging-port=9222 \
--user-data-dir=/tmp/reshot-chromeReshot will automatically connect to any Chrome instance running on the configured debug port.
Multiple Browser Profiles
For testing with different user states, you can run multiple Chrome instances with separate user data directories:
Terminal
# Admin user
reshot chrome --user-data-dir=/tmp/chrome-admin
# Regular user (in another terminal)
reshot chrome --port 9223 --user-data-dir=/tmp/chrome-user
