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

A ScriptInterface is used when we are reading debugger commands from a command-file rather than an interactive user. Command files appear in a users initialization script (e.g. .rdebugrc) and appear when running the debugger command source (Debugger::SourceCommand).

Methods

Attributes

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

Public Class methods

Public Instance methods

confirm is called before performing a dangerous action. In running a debugger script, we don‘t want to prompt, so we‘ll pretend the user has unconditionally said "yes" and return String "y".

Do we have ReadLine support? When running an debugger command script, we are not interactive so we just return false.

[Validate]