module PryByebug
Main container module for Pry-Byebug functionality
Main container module for Pry-Byebug functionality
Constants
- VERSION
Attributes
Reference to currently running pry-remote server. Used by the processor.
Public Instance Methods
Source
# File lib/pry-byebug/base.rb, line 25 def check_file_context(target, msg = nil) msg ||= "Cannot find local context. Did you use `binding.pry`?" raise(Pry::CommandError, msg) unless file_context?(target) end
Ensures that a command is executed in a local file context.
Source
# File lib/pry-byebug/base.rb, line 17 def file_context?(target) file = Helpers::Location.current_file(target) file == Pry.eval_path || !Pry::Helpers::BaseHelpers.not_a_real_file?(file) end
Checks that a target binding is in a local file context.