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/irb.rb cli/ruby-debug/commands/script.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/stepping.rb cli/ruby-debug/commands/threads.rb cli/ruby-debug/commands/frame.rb cli/ruby-debug/commands/catchpoint.rb cli/ruby-debug/commands/variables.rb cli/ruby-debug/commands/info.rb cli/ruby-debug/commands/method.rb cli/ruby-debug/commands/tmate.rb cli/ruby-debug/commands/settings.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

Display a list of strings as a compact set of columns.

     Each column is only as wide as necessary.
     Columns are separated by two spaces (one was not legible enough).
     Adapted from the routine of the same name in cmd.py

### Methods

run_init_script run_script settings start_client start_remote

### Classes and Modules

Module Debugger::ColumnizeFunctions
Module Debugger::ParseFunctions

### 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

### External Aliases

start_remote | -> | start_server

### Attributes

annotate | [RW] |
control_thread | [R] |
thread | [R] |
wait_connection | [RW] | in remote mode, wait for the remote connection

### Public Class methods

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)

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.

[Validate]