Class: Pry

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

Class Method Summary collapse

Class Method Details

.processorObject



21
22
23
# File 'lib/pry-debugger-jruby/pry_ext.rb', line 21

def processor
  @processor ||= PryDebuggerJRuby::Processor.new
end

.start_with_pry_debugger(target = TOPLEVEL_BINDING, options = {}) ⇒ Object Also known as: start



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

def start_with_pry_debugger(target = TOPLEVEL_BINDING, options = {})
  if target.is_a?(Binding) && PryDebuggerJRuby.check_file_context(target)
    # Wrap the processer around the usual Pry.start to catch navigation
    # commands.
    processor.run(true) do
      start_without_pry_debugger(target, options)
    end
  else
    # No need for the tracer unless we have a file context to step through
    start_without_pry_debugger(target, options)
  end
end