Sha256: d434b61caaeac1efc5f317cc02fe922b3ee268e58402f87d835e6d9073e0156d

Contents?: true

Size: 641 Bytes

Versions: 2

Compression:

Stored size: 641 Bytes

Contents

module Kernel
  unless respond_to?(:debugger)
    # Starts a debugging session if ruby-debug has been loaded (call rails server --debugger to do load it).
    def debugger
      message = "\n***** Debugger requested, but was not available: Start server with --debugger to enable *****\n"
      defined?(Rails) ? Rails.logger.info(message) : $stderr.puts(message)
    end
  end

  undef :breakpoint if respond_to?(:breakpoint)
  def breakpoint
    message = "\n***** The 'breakpoint' command has been renamed 'debugger' -- please change *****\n"
    defined?(Rails) ? Rails.logger.info(message) : $stderr.puts(message)
    debugger
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activesupport-3.0.0.beta3 lib/active_support/core_ext/kernel/debugger.rb
activesupport-3.0.0.beta2 lib/active_support/core_ext/kernel/debugger.rb