class PryRemote::Server
Overrides 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-byebug/pry_remote_ext.rb, line 12 def run raise("Already running a pry-remote session!") if PryByebug.current_remote_server PryByebug.current_remote_server = self setup Pry.start @object, input: client.input_proxy, output: client.output end
teardown_with_pry_byebug()
click to toggle source
# File lib/pry-byebug/pry_remote_ext.rb, line 26 def teardown_with_pry_byebug return if @torn teardown_without_pry_byebug PryByebug.current_remote_server = nil @torn = true end
Also aliased as: teardown
teardown_without_pry_byebug()
Override to reset our saved global current server session.
Alias for: teardown