Sha256: ad430bbb0cbc5545d04fcda253b59741f422ed6df82205bbebf908f1e1c0cb12
Contents?: true
Size: 623 Bytes
Versions: 2
Compression:
Stored size: 623 Bytes
Contents
require 'pry' require 'byebug/processors/pry_processor' class << Pry alias_method :start_without_pry_byebug, :start attr_reader :processor def start_with_pry_byebug(target = TOPLEVEL_BINDING, options = {}) @processor ||= Byebug::PryProcessor.new if target.is_a?(Binding) && PryByebug.file_context?(target) # Wrap processor around the usual Pry.start to catch navigation commands @processor.start else # No need for the tracer unless we have a file context to step through start_without_pry_byebug(target, options) end end alias_method :start, :start_with_pry_byebug end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pry-byebug-3.0.1 | lib/pry-byebug/pry_ext.rb |
pry-byebug-3.0.0 | lib/pry-byebug/pry_ext.rb |