class RestDebug::Manager
Attributes
code[RW]
Public Instance Methods
close()
click to toggle source
# File lib/rest_debug/manager.rb, line 37 def close `kill #{server.pid}` `kill #{client.pid}` end
debug_code()
click to toggle source
# File lib/rest_debug/manager.rb, line 7 def debug_code str = <<EOF require 'debugger' Debugger.wait_connection = true Debugger.start_remote nil, #{port} debugger EOF end
full_code()
click to toggle source
# File lib/rest_debug/manager.rb, line 16 def full_code [debug_code,code].join("\n") end
json_output(pipe)
click to toggle source
# File lib/rest_debug/manager.rb, line 29 def json_output(pipe) {:output => pipe.read_all, :open => pipe.open?} end
to_output()
click to toggle source
# File lib/rest_debug/manager.rb, line 33 def to_output {:client => json_output(client), :server => json_output(server)} end