Created
July 13, 2009 02:28
-
-
Save kookjr/145900 to your computer and use it in GitHub Desktop.
how to use ruby debugger
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using ruby-debug to debug shoes applications | |
require 'rubygems' | |
# This may be needed to get find the Readline shared object, | |
# shoes must use a different path than ruby from command line | |
$: << '/usr/lib/ruby/1.8/i486-linux' | |
# Include like this, not just with require by itself | |
Shoes.setup do | |
gem 'ruby-debug' | |
end | |
require 'ruby-debug' | |
# later in the code add the call to the debugger | |
# ... | |
debugger |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment