Upgrade to Rails 2.3.5. Also work around this bug: https://rails.lighthouseapp.com/projects/8994/tickets/3524 created by the aforementioned Rails release.
17 lines
642 B
Ruby
17 lines
642 B
Ruby
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
|
|
|
|
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
|