mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fixed that the debugger wouldn't go into IRB mode because of left-over ARGVs [DHH]
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user