Module: PryByebug
- Defined in:
- lib/pry-byebug/base.rb,
lib/pry-byebug/version.rb,
lib/pry-byebug/commands/up.rb,
lib/pry-byebug/commands/down.rb,
lib/pry-byebug/commands/next.rb,
lib/pry-byebug/commands/step.rb,
lib/pry-byebug/commands/frame.rb,
lib/pry-byebug/commands/finish.rb,
lib/pry-byebug/commands/continue.rb,
lib/pry-byebug/commands/exit_all.rb,
lib/pry-byebug/helpers/multiline.rb,
lib/pry-byebug/commands/backtrace.rb,
lib/pry-byebug/helpers/navigation.rb,
lib/pry-byebug/commands/breakpoint.rb,
lib/pry-byebug/helpers/breakpoints.rb
Overview
Main container module for Pry-Byebug functionality
Defined Under Namespace
Modules: Helpers Classes: BacktraceCommand, BreakCommand, ContinueCommand, DownCommand, ExitAllCommand, FinishCommand, FrameCommand, NextCommand, StepCommand, UpCommand
Constant Summary collapse
- VERSION =
'3.4.1'.freeze
Instance Attribute Summary collapse
-
#current_remote_server ⇒ Object
Reference to currently running pry-remote server.
Class Method Summary collapse
-
.check_file_context(target, e = nil) ⇒ Object
Ensures that a command is executed in a local file context.
-
.file_context?(target) ⇒ Boolean
Checks that a target binding is in a local file context.
Instance Attribute Details
#current_remote_server ⇒ Object
Reference to currently running pry-remote server. Used by the processor.
24 25 26 |
# File 'lib/pry-byebug/base.rb', line 24 def current_remote_server @current_remote_server end |
Class Method Details
.check_file_context(target, e = nil) ⇒ Object
Ensures that a command is executed in a local file context.
17 18 19 20 |
# File 'lib/pry-byebug/base.rb', line 17 def check_file_context(target, e = nil) e ||= 'Cannot find local context. Did you use `binding.pry`?' raise(Pry::CommandError, e) unless file_context?(target) end |