Skip to content

Instantly share code, notes, and snippets.

@makersacademy
Forked from leoallen85/debugger.rb
Created February 28, 2013 17:29
Show Gist options
  • Save makersacademy/5058482 to your computer and use it in GitHub Desktop.
Save makersacademy/5058482 to your computer and use it in GitHub Desktop.
require 'debugger'
class Hello
def hi_there
debugger
puts "wohoo"
end
end
testing = Hello.new
puts "here"
# This will break the code here
# You can carry on running the code by pressing
# continue or c.
# If you can't run the code, run `set autoeval` although you can set this up in a .rdebugrc
debugger
puts "there"
testing.hi_there
testing.hi_there
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment