Debug Workflows
Debug Workflows
Section titled “Debug Workflows”Advanced debugging techniques to diagnose and resolve issues.
Viewing Application Logs
Section titled “Viewing Application Logs”Using Console.app
Section titled “Using Console.app”- Open Console.app (in Applications/Utilities)
- In the search field, enter:
ClipboardRecast - Filter by Process to see only Clipboard Recast logs
- Look for error messages or warnings
Common Log Messages
Section titled “Common Log Messages”Normal Operation:
ClipboardRecast: Started clipboard monitoringClipboardRecast: Clipboard changed, content type: codeClipboardRecast: Workflow matched: Explain CodeClipboardRecast: AI request successfulError Conditions:
ClipboardRecast: Failed to get API response: Invalid API keyClipboardRecast: Network error: Connection timeoutClipboardRecast: No workflows matched for content type: textDebugging Workflows
Section titled “Debugging Workflows”Test Workflow Matching
Section titled “Test Workflow Matching”- Open Workflows window
- Create a test workflow:
- Name: “Test”
- Trigger: Text
- Action: Explain
- Auto-trigger: ✗ (disabled)
- Copy some text
- Press
Cmd+Shift+A - Check if “Test” appears in menu
Debug Content Type Detection
Section titled “Debug Content Type Detection”Copy different content types and check what’s detected:
Code:
def hello(): print("world")Error:
Error: Connection refused at connect (net.js:123)URL:
https://example.comText:
Just plain textDebugging API Issues
Section titled “Debugging API Issues”Test API Connection
Section titled “Test API Connection”Create a simple workflow and try each action:
- Explain
- Summarize
- Translate
If one fails but others work, the issue is action-specific.
Verify API Key
Section titled “Verify API Key”- Visit provider’s dashboard
- Check key is valid and not revoked
- Verify account has credits/quota
- Check key permissions
Test with curl
Section titled “Test with curl”Test your API key directly:
Claude:
curl https://api.anthropic.com/v1/messages \ -H "x-api-key: YOUR_KEY" \ -H "content-type: application/json" \ -d '{"model":"claude-sonnet-4-5","messages":[{"role":"user","content":"test"}],"max_tokens":100}'OpenAI:
curl https://api.openai.com/v1/chat/completions \ -H "Authorization: Bearer YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"gpt-4","messages":[{"role":"user","content":"test"}]}'Debugging Screenshot Issues
Section titled “Debugging Screenshot Issues”Test Screenshot Detection
Section titled “Test Screenshot Detection”- Take screenshot (
Cmd+Shift+4) - Open Console.app
- Search for “ClipboardRecast”
- Look for messages like:
ClipboardRecast: New screenshot detected: Screenshot 2026-01-27...ClipboardRecast: Added screenshot to history
Verify Screenshot Naming
Section titled “Verify Screenshot Naming”Screenshots must match this pattern:
Screenshot YYYY-MM-DD at H.MM.SS AM.pngScreen Shot YYYY-MM-DD at H.MM.SS AM.png
Test Vision API
Section titled “Test Vision API”Create a screenshot workflow and manually trigger it:
- Take screenshot
- Press
Cmd+Shift+A - Select vision-capable action
- Check Console.app for API response
Debugging Performance Issues
Section titled “Debugging Performance Issues”Monitor CPU Usage
Section titled “Monitor CPU Usage”- Open Activity Monitor
- Find ClipboardRecast process
- Check CPU percentage
- Normal: <1% when idle, <10% when processing
Monitor Memory Usage
Section titled “Monitor Memory Usage”Normal memory usage: 15-25 MB If much higher: possible memory leak
Monitor Network Traffic
Section titled “Monitor Network Traffic”Use Activity Monitor → Network tab to see API calls:
- Each transformation makes 1-2 API requests
- Check for excessive requests
- Auto-trigger workflows make frequent requests
Advanced Debugging
Section titled “Advanced Debugging”Enable Verbose Logging
Section titled “Enable Verbose Logging”Detailed logging options:
- Check Console.app for application logs
- Monitor file system access
- Use macOS diagnostic tools
Check UserDefaults
Section titled “Check UserDefaults”Settings are stored in UserDefaults:
defaults read com.clipboardrecast.appReset Settings
Section titled “Reset Settings”If settings are corrupted:
defaults delete com.clipboardrecast.appThen relaunch and reconfigure.
Clean Reinstall
Section titled “Clean Reinstall”- Quit Clipboard Recast
- Delete app from Applications
- Remove settings:
Terminal window defaults delete com.clipboardrecast.app - Reinstall app
- Reconfigure settings
Collecting Debug Information
Section titled “Collecting Debug Information”When reporting issues, collect:
- Console logs: Export from Console.app
- System info: macOS version, app version
- Settings: Provider, model (hide API key!)
- Steps to reproduce: What you did before error
- Error message: Exact error text
- Workflow config: Export or screenshot
Common Debug Scenarios
Section titled “Common Debug Scenarios”Scenario: Workflow triggers but action fails
Section titled “Scenario: Workflow triggers but action fails”Debug steps:
- Check Console.app for API error
- Test API key with curl
- Try different model
- Verify content type matches action
Scenario: Screenshot not analyzed
Section titled “Scenario: Screenshot not analyzed”Debug steps:
- Verify screenshot saved to Desktop
- Check Console for “screenshot detected” message
- Verify provider supports vision
- Check model is vision-capable
- Test with manual trigger
Scenario: Auto-trigger not working
Section titled “Scenario: Auto-trigger not working”Debug steps:
- Verify “Auto-process clipboard changes” enabled
- Check workflow has “Auto-trigger” enabled
- Test content type detection
- Check Console for matching messages
- Try manual trigger to isolate issue
Next Steps
Section titled “Next Steps”- Common Issues: Quick fixes
- Privacy & Security: Security concerns