class RSpec::Core::Configuration
def debug=(bool)
def debug=(bool) if bool # Usually this is called automatically by the --debug CLI option, so the # deprecation message doesn't mention `RSpec::Core::Configuration#debug=` RSpec.deprecate("RSpec's built-in debugger support", :replacement => "a CLI option like `-rruby-debug` or `-rdebugger`") else # ...but the only way to call this with a false value is to # call it directly, so here we mention the method name. # There's no replacement for it since it's a no-op, though. RSpec.deprecate("RSpec::Core::Configuration#debug=") end return unless bool begin require 'ruby-debug' Debugger.start rescue LoadError => e raise <<-EOM 50} ssage} have it installed as a ruby gem, then you need to either require ems' or configure the RUBYOPT environment variable with the value ems'. cktrace.join("\n")} 50} end end