Permalink
Browse files

Re-enable the debugger in testing

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8613 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
dhh committed Jan 9, 2008
1 parent 72bd4ff commit 4ad3721a17c721133e3a5c0e6894625a91ccee1e
Showing with 8 additions and 0 deletions.
  1. +8 −0 railties/lib/test_help.rb
@@ -18,3 +18,11 @@
def create_fixtures(*table_names)
Fixtures.create_fixtures(Test::Unit::TestCase.fixture_path, table_names)
end
+
+begin
+ require_library_or_gem 'ruby-debug'
+ Debugger.start
+ Debugger.settings[:autoeval] = true if Debugger.respond_to?(:settings)
+rescue LoadError
+ # ruby-debug wasn't available so neither can the debugging be
+end

0 comments on commit 4ad3721

Please sign in to comment.