Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…r ARGVs [DHH]
  • Loading branch information...
commit d796fc638f10bc94968820e623253f24b96f241d 1 parent 0bc150c
@dhh dhh authored
Showing with 7 additions and 0 deletions.
  1. +5 −0 railties/CHANGELOG
  2. +2 −0  railties/lib/rails/rack/debugger.rb
View
5 railties/CHANGELOG
@@ -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]
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)
Please sign in to comment.
Something went wrong with that request. Please try again.