Sha256: 183cbdab445b4a683245c0937f5c0371e578c9c5ff175bab704332465b9f610b

Contents?: true

Size: 515 Bytes

Versions: 84

Compression:

Stored size: 515 Bytes

Contents

module Kernel
  unless respond_to?(:debugger)
    # Starts a debugging session if the +debugger+ gem has been loaded (call rails server --debugger to do load it).
    def debugger
      message = "\n***** Debugger requested, but was not available (ensure the debugger gem is listed in Gemfile/installed as gem): Start server with --debugger to enable *****\n"
      defined?(Rails) ? Rails.logger.info(message) : $stderr.puts(message)
    end
    alias breakpoint debugger unless respond_to?(:breakpoint)
  end
end

Version data entries

84 entries across 84 versions & 5 rubygems

Version Path
activesupport-4.1.16 lib/active_support/core_ext/kernel/debugger.rb
activesupport-4.1.16.rc1 lib/active_support/core_ext/kernel/debugger.rb
activesupport-4.1.15 lib/active_support/core_ext/kernel/debugger.rb
activesupport-4.1.15.rc1 lib/active_support/core_ext/kernel/debugger.rb
activesupport-4.1.14.2 lib/active_support/core_ext/kernel/debugger.rb
activesupport-4.1.14.1 lib/active_support/core_ext/kernel/debugger.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/activesupport-4.1.13/lib/active_support/core_ext/kernel/debugger.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/activesupport-4.1.13/lib/active_support/core_ext/kernel/debugger.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/activesupport-4.1.13/lib/active_support/core_ext/kernel/debugger.rb
activesupport-4.1.14 lib/active_support/core_ext/kernel/debugger.rb
activesupport-4.1.14.rc2 lib/active_support/core_ext/kernel/debugger.rb
activesupport-4.1.14.rc1 lib/active_support/core_ext/kernel/debugger.rb
activesupport-4.1.13 lib/active_support/core_ext/kernel/debugger.rb
activesupport-4.1.13.rc1 lib/active_support/core_ext/kernel/debugger.rb
activesupport-4.1.12 lib/active_support/core_ext/kernel/debugger.rb
activesupport-4.1.12.rc1 lib/active_support/core_ext/kernel/debugger.rb
activesupport-4.1.11 lib/active_support/core_ext/kernel/debugger.rb
activesupport-4.1.10 lib/active_support/core_ext/kernel/debugger.rb
activesupport-4.1.10.rc4 lib/active_support/core_ext/kernel/debugger.rb
activesupport-4.1.10.rc3 lib/active_support/core_ext/kernel/debugger.rb