Sha256: a01806f41dc3d87b714b5c4a4ba5d1f02059b59d815607ccbf72d1857fdcbcc9
Contents?: true
Size: 729 Bytes
Versions: 9
Compression:
Stored size: 729 Bytes
Contents
require 'pry' unless defined? Pry require 'pry-debugger-jruby/processor' class << Pry alias start_without_pry_debugger start attr_reader :processor def start_with_pry_debugger(target = TOPLEVEL_BINDING, options = {}) @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, 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 alias start start_with_pry_debugger end
Version data entries
9 entries across 9 versions & 1 rubygems