Skip to content

Instantly share code, notes, and snippets.

@kookjr
Created July 13, 2009 02:28
Show Gist options
  • Save kookjr/145900 to your computer and use it in GitHub Desktop.
Save kookjr/145900 to your computer and use it in GitHub Desktop.
how to use ruby debugger
# 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