Class Debugger::RemoteInterface
In: cli/ruby-debug/interface.rb
Parent: Interface

A RemoteInterface is the kind of I/O interactive performed when the user interface is in a different process (and possibly different computer) than the debugged program. Compare with Debugger::LocalInterface.

Methods

Attributes

command_queue  [RW] 
histfile  [RW] 
history_length  [RW] 
history_save  [RW] 
restart_file  [RW] 

Public Class methods

[Source]

     # File cli/ruby-debug/interface.rb, line 160
160:     def initialize(socket)
161:       @command_queue = []
162:       @socket = socket
163:       @history_save = false
164:       @history_length = 256
165:       @histfile = ''
166:       # Do we read the histfile?
167: #       open(@histfile, 'r') do |file|
168: #         file.each do |line|
169: #           line.chomp!
170: #           Readline::HISTORY << line
171: #         end
172: #       end if File.exist?(@histfile)
173:       @restart_file = nil
174:     end

Public Instance methods

[Source]

     # File cli/ruby-debug/interface.rb, line 176
176:     def close
177:       @socket.close
178:     rescue Exception
179:     end

[Source]

     # File cli/ruby-debug/interface.rb, line 181
181:     def confirm(prompt)
182:       send_command "CONFIRM #{prompt}"
183:     end

[Source]

     # File cli/ruby-debug/interface.rb, line 193
193:     def print(*args)
194:       @socket.printf(*args)
195:     end

[Source]

     # File cli/ruby-debug/interface.rb, line 185
185:     def read_command(prompt)
186:       send_command "PROMPT #{prompt}"
187:     end

[Source]

     # File cli/ruby-debug/interface.rb, line 189
189:     def readline_support?
190:       false
191:     end

[Validate]