class Byebug::PryRemoteProcessor

Extends the PryProcessor to make it work with Pry-Remote

Public Class Methods

start() click to toggle source
Calls superclass method Byebug::PryProcessor::start
# File lib/byebug/processors/pry_remote_processor.rb, line 10
def self.start
  super

  Byebug.current_context.step_out(5, true)
end

Public Instance Methods

resume_pry() click to toggle source
# 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

Private Instance Methods

input() click to toggle source
# File lib/byebug/processors/pry_remote_processor.rb, line 30
def input
  server.client.input_proxy
end
output() click to toggle source
# File lib/byebug/processors/pry_remote_processor.rb, line 34
def output
  server.client.output
end
server() click to toggle source
# File lib/byebug/processors/pry_remote_processor.rb, line 38
def server
  PryByebug.current_remote_server
end