Permalink
Browse files

Fix Debugger.start in ruby-debug compat mode

  • Loading branch information...
Evan Phoenix
Evan Phoenix committed Nov 19, 2010
1 parent 19febf3 commit 6d6afc5ca4467b80f12d94e563b4c04fc9e5221c
@@ -18,8 +18,8 @@
class Toast
attr_accessor :setting
def initialize
- require 'debugger'
- Debugger.start
+ require 'rubinius/debugger'
+ Rubinius::Debugger.start
@setting = :brown
end
end
@@ -31,7 +31,7 @@
$ rbx app.rb
| Breakpoint: Toast#initialize at app.rb:5 (15)
- | 5: Debugger.start
+ | 5: Rubinius::Debugger.start
debug> help
help: Show information about debugger commands
b, break, brk: Set a breakpoint at a point in a method
@@ -98,7 +98,7 @@
$ rbx -Xdebug bug.rb
| Breakpoint: Rubinius::Loader#debugger at kernel/loader.rb:424 (34)
- | 424: Debugger.start
+ | 424: Rubinius::Debugger.start
debug> b Object#problem_code:2
* Unable to find method 'problem_code' in Object
| Would you like to defer this breakpoint to later? [y/n] y
View
@@ -460,8 +460,8 @@ def debugger
if custom = Loader.debugger
custom.call
else
- require 'debugger'
- Debugger.start
+ require 'rubinius/debugger'
+ Rubinius::Debugger.start
end
end
end
Oops, something went wrong.

0 comments on commit 6d6afc5

Please sign in to comment.