| 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.
| command_queue | [RW] | |
| histfile | [RW] | |
| history_length | [RW] | |
| history_save | [RW] | |
| restart_file | [RW] |
# 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
# File cli/ruby-debug/interface.rb, line 176
176: def close
177: @socket.close
178: rescue Exception
179: end
# File cli/ruby-debug/interface.rb, line 181
181: def confirm(prompt)
182: send_command "CONFIRM #{prompt}"
183: end
# File cli/ruby-debug/interface.rb, line 193
193: def print(*args)
194: @socket.printf(*args)
195: end
# File cli/ruby-debug/interface.rb, line 185
185: def read_command(prompt)
186: send_command "PROMPT #{prompt}"
187: end