Episode 0.24 - hammertime

An interactive error console for Ruby. - Avdi Grimm

If you have hammertime required and an exception is raised in your code, you will be able to choose from different options...

=== Stop! Hammertime. ===
An error has occurred at example.rb:6:in `faulty_method'
The error is: #<RuntimeError : Oh no!>
1. Continue (process the exception normally)            
2. Ignore (proceed without raising an exception)        
3. Permit by type (don't ask about future errors of this type)
4. Permit by line (don't ask about future errors raised from this point)
5. Backtrace (show the call stack leading up to the error)              
6. Debug (start a debugger)                                             
7. Console (start an IRB session)                                       
What now?

And, in my opinion, the best one is to switch into an IRB session...

Links for this episode

blog post by Avdi Grimm

Tags : hammertime, irb, debugging

Download (21.2 MB, 6:21)
Alternative download for iPod and iPhone (10.1 MB, 6:21)
Powered by Olark