-
Notifications
You must be signed in to change notification settings - Fork 0
Common Setups
IVG-Design edited this page Sep 22, 2025
·
2 revisions
For most projects, use the + button in the DevMirror Scripts panel for instant setup with defaults.
When using the ⚙️ Setup Wizard, these options are available:
| Option | What It Affects |
|---|---|
| Target Mode | Sets mode in config (cdp or cef) |
| Port | Sets cefPort in config (CEF mode only) |
| Wait for User | Creates background script for interactive CLIs |
| Other options | Currently stored but not used in implementation |
DevMirror generates one of these script patterns:
"dev:mirror": "concurrently \"npx devmirror-cli\" \"npm run dev\""For scripts with interactive menus or when "After user interaction" is selected:
"dev:mirror": "node scripts/devmirror-background.js & npm run dev"Plus creates scripts/devmirror-background.js file.
{
"mode": "cef",
"cefPort": 8555,
"outputDir": "./devmirror-logs",
"autoOpenBrowser": true
}Use the interactive CLI pattern if your build tool has menus.
{
"mode": "cdp",
"outputDir": "./devmirror-logs",
"autoDetectPort": true
}Standard script pattern works for most cases.
If your dev script shows a menu or requires user input:
- Use Setup Wizard
- Select "After user interaction" for Start Trigger
- This creates the background script pattern
Common development server ports:
- 3000 - Create React App, Next.js
- 5173 - Vite
- 8080 - Webpack Dev Server
- 4200 - Angular
- 6006 - Storybook
- 8555 - Adobe CEF (check your .debug file)
- CDP Mode: Opens a Chrome browser window - this is required for console capture
- CEF Mode: Connects directly to Adobe extension - no browser needed
- Background Script: Only needed for interactive CLIs that show menus
- Throttling: Automatically prevents log flooding (configurable)
- Ensure
concurrentlyis installed:npm install --save-dev concurrently - Check that puppeteer-core is installed
- Verify Chrome/Chromium is available
- Use the background script pattern
- Ensure your package.json has correct module type
- Manually specify port in config if auto-detect fails
- Ensure no firewall blocking
- Check port isn't already in use
For most projects, the simple + button setup is sufficient!
DevMirror v0.4.82 | GitHub | Issues | VS Code Marketplace
Capture 100% of browser console output with Chrome DevTools Protocol
v0.4.82