Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
DebuggingRailsGirls DC 2012Brock Wilcoxawwaiid@thelackthereof.org
DebuggingTroubleshootingProblem SolvingDetective 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?•...
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
Upcoming SlideShare
Loading in …5
×

RailsGirls DC 2012 - Debugging

420 views

Published on

High-level lightning talk covering some debugging techniques.

Published in: Technology, Education
  • Be the first to comment

  • Be the first to like this

RailsGirls DC 2012 - Debugging

  1. 1. DebuggingRailsGirls DC 2012Brock Wilcoxawwaiid@thelackthereof.org
  2. 2. DebuggingTroubleshootingProblem SolvingDetective Work
  3. 3. Describe the problem
  4. 4. 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?
  5. 5. Reproduce the Problem
  6. 6. Reduce the Problem
  7. 7. Logging(warn "Here!")
  8. 8. Debugger
  9. 9. Test Case
  10. 10. Verify Assumptions
  11. 11. puts "right now person is set to:", person
  12. 12. Break It!
  13. 13. Compiler help(Read the Error Message)
  14. 14. One modification at a time
  15. 15. Never fix again
  16. 16. THE END

×