Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
port of ruby-debug that works on 1.9.2 and 1.9.3
C Ruby Emacs Lisp

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
cli
doc
emacs
ext/ruby_debug
lib
test
.travis.yml
AUTHORS
CHANGELOG.md
LICENSE
Makefile.am
OLDER_CHANGELOG
OLD_CHANGELOG
OLD_README
README.md
Rakefile
autogen.sh
configure.ac
debugger.gemspec
rdbg.rb
runner.sh
svn2cl_usermap

README.md

Description

A fork of ruby-debug19 that works on 1.9.3 and installs easily for rvm/rbenv rubies. 1.9.2 support coming...

Build Status

Install

$ gem install debugger

# If install fails, try passing headers path
$ gem install debugger -- --with-ruby-include=PATH_TO_HEADERS

For Windows install instructions, see OLD_README.

Usage

To use in your Rails app, drop in your Gemfile:

gem 'debugger'

Wherever you need a debugger, simply:

require 'debugger'; debugger

Reason for Fork

  • ruby-debug19 maintainer isn't maintaining:
    • Despite patches from ruby core, no gem release in 2+ years! - 9/1/09.
    • Requests to release a known working 1.9.3 version have been ignored.
    • Doesn't respond to rubyforge issues and doesn't have github issues open.
  • Current install is painful. Requires either manually downloading gems from rubyforge and installing with compiler flags or recompiling ruby.
  • We need a decent ruby debugger for future rubies!

What's different from ruby-debug19

  • Works on 1.9.3 but not 1.9.2 yet
  • Install painlessly for rvm and rbenv rubies i.e. no compiler flags needed
  • Tests are up on travis-ci
  • The gem name matches the module namespace, Debugger, and main required file, debugger.
  • Rake tasks have been updated
  • ruby-debug-base19 and ruby-debug19 are released as one gem
  • No downloading ruby source during install - was behavior of old ruby_core_source dependency
  • Fix LocalJumpError caused by using proc in extconf.rb

Issues

Please report them on github.

Contributing

See here for contribution policies. Let's keep this working for the ruby community!

Credits

  • Thanks to the original authors: Kent Sibilev and Mark Moseley
  • Fork started on awesome @relevance fridays!

TODO

  • Add back support for 1.9.2
    • Doing something stupid simple i.e. copy latest ruby-debug19 that works and require as needed
  • Fix test/test-*.rb
  • Work with others willing to tackle jruby, rubinius or windows support
  • Clean up (merge) lib + cli as separate runtime paths for ruby-debug-base19 and ruby-debug19
Something went wrong with that request. Please try again.