Skip to content
Browse files

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

…r ARGVs [DHH]
  • Loading branch information...
1 parent 78790e4 commit 35eda7d6d2ea13b4e42eeea9f11245e22c245fc2 @dhh dhh committed Nov 23, 2009
Showing with 4 additions and 0 deletions.
  1. +2 −0 railties/CHANGELOG
  2. +2 −0 railties/lib/rails/rack/debugger.rb
View
2 railties/CHANGELOG
@@ -1,5 +1,7 @@
*Edge*
+* Fixed that the debugger wouldn't go into IRB mode because of left-over ARGVs [DHH]
+
* I18n support for plugins. #2325 [Antonio Tapiador, Sven Fuchs]
* Ruby 1.9: use UTF-8 for default internal and external encodings. [Jeremy Kemper]
View
2 railties/lib/rails/rack/debugger.rb
@@ -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 35eda7d

Please sign in to comment.
Something went wrong with that request. Please try again.