Doctor Command
See the CLI Reference for more information on diagnostic commands.
Background Tasks for Debugging
Background tasks allow you to:- Monitor logs in real-time
- See server output while Claude continues working
- Catch errors that might be hidden in synchronous execution
Browser Debugging with MCP
These tools enable Claude to:- Inspect console errors directly
- Debug browser-based applications
- Automate testing and debugging workflows
See the Browser Automation MCP Comparison for detailed analysis of these tools.
Visual Debugging
Cross-Model QA
Common Debugging Workflows
Server Issues
- Run the server as a background task
- Ask Claude to check the logs
- Use MCP if browser-based debugging is needed
- Provide screenshots of browser errors
Build Errors
- Run
/doctorto check for environment issues - Review error messages carefully
- Compact context if approaching limits
- Use plan mode for complex multi-step fixes
Permission Issues
Check
/permissions to see what’s allowed. Use wildcard syntax for broader permissions:Bash(npm run *)Edit(/docs/**)
/sandbox to reduce permission prompts with file and network isolation.