007 RR Debugging in Ruby

    0
    143
    • Debuggers and Tools
    • Formatting Debug Output
    • Outputting debug information
    • Other debugging tricks
      • abort_on_exception = true
      • The Ruby executable's -d switch and the $DEBUG constant
      • Using a logger to output data from a specific piece of code
      • The debug method in Rails helpers and views
      • Using Object#freeze on to find what is modifying the object
      • Passing a dummy object that uses method_missing to output method calls and arguments
      • Do not debug alone
      • Spike the debugging, git stash the changes, write the test, unstash the changes and verify the result