Module Debugger
In: cli/ruby-debug.rb
cli/ruby-debug/commands/finish.rb
cli/ruby-debug/commands/breakpoints.rb
cli/ruby-debug/commands/set.rb
cli/ruby-debug/commands/source.rb
cli/ruby-debug/commands/reload.rb
cli/ruby-debug/commands/continue.rb
cli/ruby-debug/commands/enable.rb
cli/ruby-debug/commands/quit.rb
cli/ruby-debug/commands/variables.rb
cli/ruby-debug/commands/catchpoint.rb
cli/ruby-debug/commands/info.rb
cli/ruby-debug/commands/edit.rb
cli/ruby-debug/commands/control.rb
cli/ruby-debug/commands/condition.rb
cli/ruby-debug/commands/tmate.rb
cli/ruby-debug/commands/eval.rb
cli/ruby-debug/commands/frame.rb
cli/ruby-debug/commands/stepping.rb
cli/ruby-debug/commands/kill.rb
cli/ruby-debug/commands/display.rb
cli/ruby-debug/commands/method.rb
cli/ruby-debug/commands/list.rb
cli/ruby-debug/commands/show.rb
cli/ruby-debug/commands/irb.rb
cli/ruby-debug/commands/help.rb
cli/ruby-debug/commands/trace.rb
cli/ruby-debug/commands/threads.rb
cli/ruby-debug/commands/save.rb
cli/ruby-debug/helper.rb
cli/ruby-debug/interface.rb
cli/ruby-debug/processor.rb
cli/ruby-debug/command.rb

Methods

Classes and Modules

Module Debugger::ParseFunctions
Class Debugger::AddBreakpoint
Class Debugger::ContinueCommand
Class Debugger::DeleteBreakpointCommand
Class Debugger::FinishCommand
Class Debugger::HelpCommand
Class Debugger::IRBCommand
Class Debugger::InfoCommand
Class Debugger::KillCommand
Class Debugger::ListCommand
Class Debugger::MethodCommand
Class Debugger::MethodSigCommand
Class Debugger::NextCommand
Class Debugger::Processor
Class Debugger::QuitCommand
Class Debugger::ReloadCommand
Class Debugger::SetCommand
Class Debugger::ShowCommand
Class Debugger::SourceCommand
Class Debugger::StepCommand
Class Debugger::VarClassVarCommand
Class Debugger::VarInheritCommand
Class Debugger::VarLocalCommand
Class Debugger::WhereCommand

Constants

PORT = 8989 unless defined?(PORT)   the port number used for remote debugging
INITFILE = 'rdebug.ini'   Of course MS Windows has to be different
HOME_DIR = (ENV['HOME'] || ENV['HOMEDRIVE'].to_s + ENV['HOMEPATH'].to_s).to_s
INITFILE = '.rdebugrc'
HOME_DIR = ENV['HOME'].to_s
RUBY_DEBUG_DIR = File.expand_path(File.dirname(__FILE__)) unless defined?(RUBY_DEBUG_DIR)

External Aliases

start_remote -> start_server

Attributes

annotate  [RW]  gdb-style annotation mode. Used in GNU Emacs interface
cmd_port  [R] 
control_thread  [R] 
ctrl_port  [R] 
start_sentinal  [RW]  If set, a string to look for in caller() and is used to see if the call stack is truncated.
thread  [R] 
wait_connection  [RW]  in remote mode, wait for the remote connection

Public Class methods

Runs normal debugger initialization scripts Reads and executes the commands from init file (if any) in the current working directory. This is only done if the current directory is different from your home directory. Thus, you can have more than one init file, one generic in your home directory,

 and another, specific to the program you are debugging, in the

directory where you invoke ruby-debug.

Returns setting object. Use Debugger.settings[] and Debugger.settings[]= methods to query and set debugger settings. These settings are available:

  • :autolist - automatically calls ‘list’ command on breakpoint
  • :autoeval - evaluates input in the current binding if it‘s not recognized as a debugger command
  • :autoirb - automatically calls ‘irb’ command on breakpoint
  • :stack_trace_on_error - shows full stack trace if eval command results with an exception
  • :frame_full_path - displays full paths when showing frame stack
  • :frame_class_names - displays method‘s class name when showing frame stack
  • :reload_source_on_change - makes ‘list’ command to always display up-to-date source code
  • :force_stepping - stepping command asways move to the new line

Connects to the remote debugger

Public Instance methods

[Validate]