Skip to content
Browse files

Turn on autolist for debugging also

  • Loading branch information...
1 parent 8b9b954 commit 22554745b7239eca19ea634feca4fcda517b3f97 @jeremy jeremy committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 railties/lib/test_help.rb
View
5 railties/lib/test_help.rb
@@ -29,7 +29,10 @@ def create_fixtures(*table_names, &block)
begin
require_library_or_gem 'ruby-debug'
Debugger.start
- Debugger.settings[:autoeval] = true if Debugger.respond_to?(:settings)
+ if Debugger.respond_to?(:settings)
+ Debugger.settings[:autoeval] = true
+ Debugger.settings[:autolist] = 1
+ end
rescue LoadError
# ruby-debug wasn't available so neither can the debugging be
end

0 comments on commit 2255474

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