Class: Byebug::PryRemoteProcessor

Inherits:
PryProcessor
  • Object
show all
Defined in:
lib/byebug/processors/pry_remote_processor.rb

Overview

Extends the PryProcessor to make it work with Pry-Remote

Instance Attribute Summary

Attributes inherited from PryProcessor

#pry

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from PryProcessor

#at_breakpoint, #at_end, #at_line, #at_return, #perform, #run

Class Method Details

.startObject



10
11
12
13
14
# File 'lib/byebug/processors/pry_remote_processor.rb', line 10

def self.start
  super

  Byebug.current_context.step_out(5, true)
end

Instance Method Details

#resume_pryObject



16
17
18
19
20
21
22
23
24
25
26
# File 'lib/byebug/processors/pry_remote_processor.rb', line 16

def resume_pry
  new_binding = frame._binding

  run do
    if defined?(@pry) && @pry
      @pry.repl(new_binding)
    else
      @pry = Pry.start_without_pry_byebug(new_binding, input: input, output: output)
    end
  end
end