Module: PryByebug::Helpers::Navigation

Included in:
BacktraceCommand, ContinueCommand, DownCommand, FinishCommand, FrameCommand, NextCommand, StepCommand, UpCommand
Defined in:
lib/pry-byebug/helpers/navigation.rb

Overview

Helpers to aid breaking out of the REPL loop

Instance Method Summary collapse

Instance Method Details

#breakout_navigation(action, options = {}) ⇒ Object

Breaks out of the REPL loop and signals tracer


12
13
14
15
16
# File 'lib/pry-byebug/helpers/navigation.rb', line 12

def breakout_navigation(action, options = {})
  pry_instance.binding_stack.clear

  throw :breakout_nav, action: action, options: options, pry: pry_instance
end