Fixed that the debugger wouldn't go into IRB mode because of left-over ARGVs [DHH]

This commit is contained in:
David Heinemeier Hansson
2009-11-23 15:36:48 -06:00
parent 78790e47b8
commit 35eda7d6d2
2 changed files with 4 additions and 0 deletions

View File

@@ -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 File

@@ -4,6 +4,8 @@ module Rails
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)