Debugging

RailsGirls DC 2012

Brock Wilcox
awwaiid@thelackthereof.org
Debugging
Troubleshooting
Problem Solving
Detective Work
Describe the problem
Good bug reports collect these:

•   What are you trying to achieve?
•   Is this one issue or many?
•   Is this a code issue?
•   When did the issue start?
•   How often does it occur?
•   Is it reliably reproducable?
•   Are there test-steps?
•   Screenshot / Screencast?
•   Is there a work-around?
Reproduce the Problem
Reduce the Problem
Logging

(warn "Here!")
Debugger
Test Case
Verify Assumptions
puts "right now person is set to:", person
Break It!
Compiler help

(Read the Error Message)
One modification at a time
Never fix again
THE END

RailsGirls DC 2012 - Debugging