Basic Debugging Workflow
1. Set Breakpoints
Ask your AI to set breakpoints:2. Start Debugging
3. Inspect State
When paused at a breakpoint:4. Step Through Code
Common Patterns
Finding a Bug
Understanding Complex Logic
Tracking Variable Changes
Advanced Features
Conditional Breakpoints
Log Points
Watch Expressions
Evaluate Expressions
Language-Specific Examples
Python
Rust
JavaScript
Best Practices
✅ Do
- Be specific about line numbers
- Set breakpoints before starting the debugger
- Ask for context (stack trace, variables)
- Use natural language
- Step through unfamiliar code
❌ Don’t
- Add console.log or print statements (use the debugger!)
- Guess at values (inspect them!)
- Run without breakpoints in complex code
- Forget to ask for the stack trace when confused