Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 3795bc0156
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (18 sloc) 0.644 kB
require 'pry'
require 'pry-nav/tracer'
class << Pry
alias_method :start_without_pry_nav, :start
def start_with_pry_nav(target = TOPLEVEL_BINDING, options = {})
old_options = options.reject { |k, _| k == :pry_remote }
if target.is_a?(Binding) && PryNav.check_file_context(target)
# Wrap the tracer around the usual Pry.start
PryNav::Tracer.new(options).run do
start_without_pry_nav(target, old_options)
end
else
# No need for the tracer unless we have a file context to step through
start_without_pry_nav(target, old_options)
end
end
alias_method :start, :start_with_pry_nav
end
Jump to Line
Something went wrong with that request. Please try again.