class PryRemote::Server

Public Instance Methods

run() click to toggle source

Override the call to Pry.start to save off current Server, and not teardown the server right after Pry.start finishes.

# File lib/pry-debugger/pry_remote_ext.rb, line 7
def run
  if PryDebugger.current_remote_server
    raise 'Already running a pry-remote session!'
  else
    PryDebugger.current_remote_server = self
  end

  setup
  Pry.start @object, {
    :input  => client.input_proxy,
    :output => client.output
  }
end
teardown() click to toggle source
teardown_with_pry_debugger() click to toggle source
# File lib/pry-debugger/pry_remote_ext.rb, line 23
def teardown_with_pry_debugger
  return if @torn

  teardown_without_pry_debugger
  PryDebugger.current_remote_server = nil
  @torn = true
end
Also aliased as: teardown
teardown_without_pry_debugger() click to toggle source

Override to reset our saved global current server session.

Alias for: teardown