Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 11 lines (10 sloc) 0.515 kB
70ac560 @dhh Removed breakpointer and Binding.of_caller in favor of relying on rub…
dhh authored
1 module Kernel
2 unless respond_to?(:debugger)
d6c831c @asanghi and one more time
asanghi authored
3 # Starts a debugging session if the +debugger+ gem has been loaded (call rails server --debugger to do load it).
70ac560 @dhh Removed breakpointer and Binding.of_caller in favor of relying on rub…
dhh authored
4 def debugger
d6c831c @asanghi and one more time
asanghi authored
5 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"
5e1b46d @jeremy Don't rely on Rails.logger
jeremy authored
6 defined?(Rails) ? Rails.logger.info(message) : $stderr.puts(message)
70ac560 @dhh Removed breakpointer and Binding.of_caller in favor of relying on rub…
dhh authored
7 end
2514d65 @joshk Removed the AS core_ext/kernel/debugger breakpoint method as this met…
joshk authored
8 alias breakpoint debugger unless respond_to?(:breakpoint)
70ac560 @dhh Removed breakpointer and Binding.of_caller in favor of relying on rub…
dhh authored
9 end
c1a8690 @josh Consistently use the framework's configured logger and avoid revertin…
josh authored
10 end
Something went wrong with that request. Please try again.