An Interface is the kind of input/output interaction that goes on between the user and the debugged program. It includes things like how one wants to show error messages, or read input. This is the base class. Subclasses inlcude Debugger::LocalInterface, Debugger::RemoteInterface and Debugger::ScriptInterface.
Format msg with gdb-style annotation header
# File cli/ruby-debug/interface.rb, line 36 def afmt(msg, newline="\n") "\0032\0032#{msg}#{newline}" end
# File cli/ruby-debug/interface.rb, line 40 def aprint(msg) print afmt(msg) end
Common routine for reporting debugger error messages. Derived classed may want to override this to capture output.
# File cli/ruby-debug/interface.rb, line 24 def errmsg(*args) if Debugger.annotate.to_i > 2 aprint 'error-begin' print(*args) aprint '' else print '*** ' print(*args) end end
Generated with the Darkfish Rdoc Generator 2.