Class: Pry
- Inherits:
-
Object
- Object
- Pry
- Defined in:
- lib/pry-debugger-jruby/pry_ext.rb
Class Attribute Summary collapse
-
.processor ⇒ Object
readonly
Returns the value of attribute processor.
Class Method Summary collapse
Class Attribute Details
.processor ⇒ Object (readonly)
Returns the value of attribute processor.
6 7 8 |
# File 'lib/pry-debugger-jruby/pry_ext.rb', line 6 def processor @processor end |
Class Method Details
.start_with_pry_debugger(target = TOPLEVEL_BINDING, options = {}) ⇒ Object Also known as: start
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/pry-debugger-jruby/pry_ext.rb', line 8 def start_with_pry_debugger(target = TOPLEVEL_BINDING, = {}) @processor ||= PryDebuggerJRuby::Processor.new 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, ) end else # No need for the tracer unless we have a file context to step through start_without_pry_debugger(target, ) end end |