class Byebug::RemoteInterface
def close
def close @socket.close rescue Exception end
def confirm(prompt)
def confirm(prompt) send_command "CONFIRM #{prompt}" end
def finalize
def finalize end
def initialize(socket)
def initialize(socket) @command_queue = [] @socket = socket @history_save = false @history_length = 256 @histfile = '' # Do we read the histfile? open(@histfile, 'r') do |file| file.each do |line| line.chomp! Readline::HISTORY << line end end if File.exist?(@histfile) @restart_file = nil end
def print(*args)
def print(*args) @socket.printf(escape(format(*args))) end
def read_command(prompt)
def read_command(prompt) send_command "PROMPT #{prompt}" end
def readline_support?
def readline_support? false end
def send_command(msg)
def send_command(msg) @socket.puts msg result = @socket.gets raise IOError unless result result.chomp end