Permalink
Browse files

Fixed that the debugger wouldn't go into IRB mode because of left-ove…

…r ARGVs [DHH]
  • Loading branch information...
1 parent 0bc150c commit d796fc638f10bc94968820e623253f24b96f241d @dhh dhh committed Nov 23, 2009
Showing with 7 additions and 0 deletions.
  1. +5 −0 railties/CHANGELOG
  2. +2 −0 railties/lib/rails/rack/debugger.rb
View
@@ -1,3 +1,8 @@
+*Edge*
+
+* Fixed that the debugger wouldn't go into IRB mode because of left-over ARGVs [DHH]
+
+
*2.3.4 (September 4, 2009)*
* I18n support for plugins. #2325 [Antonio Tapiador, Sven Fuchs]
@@ -4,6 +4,8 @@ class Debugger
def initialize(app)
@app = app
+ ARGV.clear # clear ARGV so that script/server options aren't passed to IRB
+
require_library_or_gem 'ruby-debug'
::Debugger.start
::Debugger.settings[:autoeval] = true if ::Debugger.respond_to?(:settings)

0 comments on commit d796fc6

Please sign in to comment.