mirror of
https://github.com/github/rails.git
synced 2026-01-10 07:07:54 -05:00
do not require ruby-debug automatically. please require it if you have declared it as a dependency
This commit is contained in:
@@ -36,14 +36,6 @@ require 'active_record'
|
||||
require 'action_controller/caching'
|
||||
require 'action_controller/caching/sweeping'
|
||||
|
||||
begin
|
||||
require 'ruby-debug'
|
||||
Debugger.settings[:autoeval] = true
|
||||
Debugger.start
|
||||
rescue LoadError
|
||||
# Debugging disabled. `gem install ruby-debug` to enable.
|
||||
end
|
||||
|
||||
require 'pp' # require 'pp' early to prevent hidden_methods from not picking up the pretty-print methods until too late
|
||||
|
||||
module Rails
|
||||
|
||||
@@ -12,9 +12,3 @@ ActiveSupport::Deprecation.debug = true
|
||||
|
||||
require 'rubygems'
|
||||
require 'test/unit'
|
||||
|
||||
begin
|
||||
require 'ruby-debug'
|
||||
Debugger.start
|
||||
rescue LoadError
|
||||
end
|
||||
|
||||
@@ -13,11 +13,6 @@ require 'active_record'
|
||||
require 'active_support/dependencies'
|
||||
require 'connection'
|
||||
|
||||
begin
|
||||
require 'ruby-debug'
|
||||
rescue LoadError
|
||||
end
|
||||
|
||||
# Show backtraces for deprecated behavior for quicker cleanup.
|
||||
ActiveSupport::Deprecation.debug = true
|
||||
|
||||
|
||||
@@ -39,14 +39,3 @@ class ActionDispatch::IntegrationTest
|
||||
@routes = Rails.application.routes
|
||||
end
|
||||
end
|
||||
|
||||
begin
|
||||
require_library_or_gem 'ruby-debug'
|
||||
Debugger.start
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user