Class: Pry
- Inherits:
-
Object
- Object
- Pry
- Defined in:
- lib/pry-debugger/pry_ext.rb
Class Method Summary collapse
Class Method Details
.start(target = TOPLEVEL_BINDING, options = {}) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/pry-debugger/pry_ext.rb', line 7 def start(target = TOPLEVEL_BINDING, = {}) = .reject { |k, _| k == :pry_remote } if target.is_a?(Binding) && PryDebugger.check_file_context(target) # Wrap the processer around the usual Pry.start to catch navigation # commands. PryDebugger::Processor.new().run do start_existing(target, ) end else # No need for the tracer unless we have a file context to step through start_existing(target, ) end end |
.start_existing ⇒ Object
5 |
# File 'lib/pry-debugger/pry_ext.rb', line 5 alias_method :start_existing, :start |