Module: Debugger

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

### Methods

execute execute execute help help help help_command help_command help_command info_args info_breakpoints info_display info_file info_files info_global_variables info_instance_variables info_line info_locals info_program info_stack info_thread info_threads info_variables regexp regexp regexp run_init_script run_script settings start_client start_remote

### 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::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
control_thread | [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

help(args)
help(args)
help(args)
help_command()
help_command()
help_command()
run_init_script(out = handler.interface)

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.

run_script(file, out = handler.interface, verbose=false)

Runs a script file

settings()

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

start_client(host = 'localhost', port = PORT)

Connects to the remote debugger

start_remote(host = nil, port = PORT, post_mortem = false) {|if block_given?| ...}

Starts a remote debugger.

### Public Instance methods

execute()
execute()
execute()
info_args(*args)
info_breakpoints(*args)
info_display(*args)
info_file(*args)
info_files(*args)
info_global_variables(*args)
info_instance_variables(*args)
info_line(*args)
info_locals(*args)
info_program(*args)
info_stack(*args)
info_thread(*args)
info_threads(*args)
info_variables(*args)
regexp()
regexp()
regexp()

[Validate]