Sha256: 1000b10bf0e35298f71145d07c9b349da40b9784bda75ec1430ceb7458dfbdc0

Contents?: true

Size: 594 Bytes

Versions: 28

Compression:

Stored size: 594 Bytes

Contents

module Kernel
  unless respond_to?(:debugger)
    # Starts a debugging session if ruby-debug has been loaded (call script/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

  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

28 entries across 27 versions & 8 rubygems

Version Path
radiantcms-couchrest_model-0.2.4 vendor/rails/activesupport/lib/active_support/core_ext/kernel/debugger.rb
radiantcms-couchrest_model-0.2.2 vendor/rails/activesupport/lib/active_support/core_ext/kernel/debugger.rb
radiantcms-couchrest_model-0.2.1 vendor/rails/activesupport/lib/active_support/core_ext/kernel/debugger.rb
radiantcms-couchrest_model-0.2 vendor/rails/activesupport/lib/active_support/core_ext/kernel/debugger.rb
radiantcms-couchrest_model-0.1.9 vendor/rails/activesupport/lib/active_support/core_ext/kernel/debugger.rb
radiantcms-couchrest_model-0.1.8 vendor/rails/activesupport/lib/active_support/core_ext/kernel/debugger.rb
radiantcms-couchrest_model-0.1.7 vendor/rails/activesupport/lib/active_support/core_ext/kernel/debugger.rb
radiantcms-couchrest_model-0.1.6 vendor/rails/activesupport/lib/active_support/core_ext/kernel/debugger.rb
radiantcms-couchrest_model-0.1.5 vendor/rails/activesupport/lib/active_support/core_ext/kernel/debugger.rb
radiant-0.8.2 vendor/rails/activesupport/lib/active_support/core_ext/kernel/debugger.rb
usher-0.7.0 spec/rails2_3/vendor/rails/vendor/rails/activesupport/pkg/activesupport-2.3.3/lib/active_support/core_ext/kernel/debugger.rb
usher-0.7.0 spec/rails2_3/vendor/rails/vendor/rails/activesupport/lib/active_support/core_ext/kernel/debugger.rb
ginst-2009.12.8 vendor/rails/activesupport/lib/active_support/core_ext/kernel/debugger.rb
ginst-2009.11.24 vendor/rails/activesupport/lib/active_support/core_ext/kernel/debugger.rb
ginst-2009.11.23 vendor/rails/activesupport/lib/active_support/core_ext/kernel/debugger.rb
ginst-2.0.1 vendor/rails/activesupport/lib/active_support/core_ext/kernel/debugger.rb
ginst-2.0.0 vendor/rails/activesupport/lib/active_support/core_ext/kernel/debugger.rb
gemstreamer-1.2.0 spec/assets/testapp/vendor/rails/activesupport/lib/active_support/core_ext/kernel/debugger.rb
gemstreamer-1.1.1 spec/assets/testapp/vendor/rails/activesupport/lib/active_support/core_ext/kernel/debugger.rb
gemstreamer-1.1.0 spec/assets/testapp/vendor/rails/activesupport/lib/active_support/core_ext/kernel/debugger.rb