A LocalInterface is the kind of I/O interactive performed when the user interface is in the same process as the debugged program. Compare with Debugger::RemoteInterface.
# File cli/ruby-debug/interface.rb, line 63 def initialize() super @command_queue = [] @restart_file = nil if @have_readline # take gdb's default @history_length = ENV['HISTSIZE'] ? ENV['HISTSIZE'].to_i : 256 @histfile = File.join(ENV['HOME']||ENV['HOMEPATH']||'.', FILE_HISTORY) open(@histfile, 'r') do |file| file.each do |line| line.chomp! Readline::HISTORY << line end end if File.exist?(@histfile) end end
# File cli/ruby-debug/interface.rb, line 86 def confirm(prompt) readline(prompt, false) end
Things to do before quitting
# File cli/ruby-debug/interface.rb, line 98 def finalize if Debugger.method_defined?("annotate") and Debugger.annotate.to_i > 2 print "\0032\0032exited\n\n" end if Debugger.respond_to?(:save_history) Debugger.save_history end end
# File cli/ruby-debug/interface.rb, line 90 def print(*args) STDOUT.printf(*args) end
Generated with the Darkfish Rdoc Generator 2.