Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Use Ruby's built-in debugger. #12

Open
wants to merge 1 commit into from

3 participants

@postmodern
  • require 'debug' for MRI/JRuby.
  • require 'rubinius/debugger' and Rubinius::Debugger.start for Rubinius.
@postmodern postmodern Use Ruby's built-in debugger.
* require 'debug' for MRI/JRuby.
* require 'rubinius/debugger' and Rubinius::Debugger.start for Rubinius.
44268b1
@krainboltgreene

Please accept this, in light of the newest patchset that doesnt work with debugger.

@davejacobs
Owner

I'll look into this today. Sorry for the delay, things have been busy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 4, 2012
  1. @postmodern

    Use Ruby's built-in debugger.

    postmodern authored
    * require 'debug' for MRI/JRuby.
    * require 'rubinius/debugger' and Rubinius::Debugger.start for Rubinius.
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 9 deletions.
  1. +0 −6 Gemfile
  2. +0 −1  letters.gemspec
  3. +7 −2 lib/letters/helpers.rb
View
6 Gemfile
@@ -5,9 +5,3 @@ gem "activesupport"
gem "xml-simple"
gem "timecop"
gem "colorize"
-
-if RUBY_VERSION =~ /1\.9\.\d+/
- gem "debugger"
-else
- gem "ruby-debug"
-end
View
1  letters.gemspec
@@ -28,7 +28,6 @@ Gem::Specification.new do |s|
s.add_dependency "activesupport"
s.add_dependency "xml-simple"
s.add_dependency "colorize"
- s.add_dependency "debugger"
s.add_development_dependency "timecop"
s.add_development_dependency "rspec"
View
9 lib/letters/helpers.rb
@@ -98,8 +98,13 @@ def self.pretty_callstack(callstack)
# This provides a mockable method for testing
def self.call_debugger
- require "ruby-debug"
- debugger
+ if (defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx')
+ require 'rubinius/debugger'
+ Rubinius::Debugger.start
+ else
+ require 'debug'
+ end
+
nil
end
Something went wrong with that request. Please try again.