Class: Pry::REPL

Inherits:
Object
  • Object
show all
Defined in:
lib/pry-byebug/pry_ext.rb

Class Method Summary collapse

Class Method Details

.start_with_pry_byebug(options = {}) ⇒ Object Also known as: start



8
9
10
11
12
13
14
15
16
17
# File 'lib/pry-byebug/pry_ext.rb', line 8

def start_with_pry_byebug(options = {})
  target = options[:target]

  if target.is_a?(Binding) && PryByebug.file_context?(target)
    Byebug::PryProcessor.start unless ENV["DISABLE_PRY"]
  else
    # No need for the tracer unless we have a file context to step through
    start_without_pry_byebug(options)
  end
end