Sha256: e7b2b6a264013eb5174c561a4ccee9f26358b43067e21fbaf1b5a69229a74de7

Contents?: true

Size: 699 Bytes

Versions: 105

Compression:

Stored size: 699 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 (ensure ruby-debug is listed in Gemfile/installed as gem): 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

105 entries across 105 versions & 5 rubygems

Version Path
social_url_stats-0.0.1 vendor/ruby/1.9.1/gems/activesupport-3.0.0/lib/active_support/core_ext/kernel/debugger.rb
activesupport-3.1.12 lib/active_support/core_ext/kernel/debugger.rb
activesupport-3.1.11 lib/active_support/core_ext/kernel/debugger.rb
activesupport-3.0.20 lib/active_support/core_ext/kernel/debugger.rb
activesupport-3.1.10 lib/active_support/core_ext/kernel/debugger.rb
activesupport-3.0.19 lib/active_support/core_ext/kernel/debugger.rb
activesupport-3.1.9 lib/active_support/core_ext/kernel/debugger.rb
activesupport-3.0.18 lib/active_support/core_ext/kernel/debugger.rb
dirty_history-0.7.3 dirty_history/ruby/1.9.1/gems/activesupport-3.1.1/lib/active_support/core_ext/kernel/debugger.rb
dirty_history-0.7.2 dirty_history/ruby/1.9.1/gems/activesupport-3.1.1/lib/active_support/core_ext/kernel/debugger.rb
dirty_history-0.7.1 dirty_history/ruby/1.9.1/gems/activesupport-3.1.1/lib/active_support/core_ext/kernel/debugger.rb
dirty_history-0.7.0 dirty_history/ruby/1.9.1/gems/activesupport-3.1.1/lib/active_support/core_ext/kernel/debugger.rb
dirty_history-0.6.7 dirty_history/ruby/1.9.1/gems/activesupport-3.1.1/lib/active_support/core_ext/kernel/debugger.rb
dirty_history-0.6.6 dirty_history/ruby/1.9.1/gems/activesupport-3.1.1/lib/active_support/core_ext/kernel/debugger.rb
dirty_history-0.6.5 dirty_history/ruby/1.9.1/gems/activesupport-3.1.1/lib/active_support/core_ext/kernel/debugger.rb
dirty_history-0.6.4 dirty_history/ruby/1.9.1/gems/activesupport-3.1.1/lib/active_support/core_ext/kernel/debugger.rb
activesupport-3.1.8 lib/active_support/core_ext/kernel/debugger.rb
activesupport-3.0.17 lib/active_support/core_ext/kernel/debugger.rb
dirty_history-0.6.3 dirty_history/ruby/1.9.1/gems/activesupport-3.1.1/lib/active_support/core_ext/kernel/debugger.rb
activesupport-3.1.7 lib/active_support/core_ext/kernel/debugger.rb