repo stringlengths 5 92 | file_url stringlengths 80 287 | file_path stringlengths 5 197 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:37:27 2026-01-04 17:58:21 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/setting.rb | lib/byebug/setting.rb | # frozen_string_literal: true
require_relative "helpers/string"
module Byebug
#
# Parent class for all byebug settings.
#
class Setting
attr_accessor :value
DEFAULT = false
def initialize
@value = self.class::DEFAULT
end
def boolean?
[true, false].include?(value)
end
... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/option_setter.rb | lib/byebug/option_setter.rb | # frozen_string_literal: true
module Byebug
#
# Handles byebug's command line options
#
class OptionSetter
def initialize(runner, opts)
@runner = runner
@opts = opts
end
def setup
debug
include_flag
post_mortem
quit
rc
stop
require_flag
r... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/context.rb | lib/byebug/context.rb | # frozen_string_literal: true
require_relative "frame"
require_relative "helpers/path"
require_relative "helpers/file"
require_relative "processors/command_processor"
module Byebug
#
# Maintains context information for the debugger and it's the main
# communication point between the library and the C-extension ... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/remote.rb | lib/byebug/remote.rb | # frozen_string_literal: true
require "socket"
require_relative "processors/control_processor"
require_relative "remote/server"
require_relative "remote/client"
#
# Remote debugging functionality.
#
module Byebug
# Port number used for remote debugging
PORT = 8989 unless defined?(PORT)
class << self
# If i... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/history.rb | lib/byebug/history.rb | # frozen_string_literal: true
require "reline"
module Byebug
#
# Handles byebug's history of commands.
#
class History
attr_reader :size
def initialize
@size = 0
end
#
# Array holding the list of commands in history
#
def buffer
Reline::HISTORY.to_a
end
#
... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/attacher.rb | lib/byebug/attacher.rb | # frozen_string_literal: true
#
# Main Container for all of Byebug's code
#
module Byebug
#
# Starts byebug, and stops at the first line of user's code.
#
def self.attach
unless started?
self.mode = :attached
start
run_init_script
end
current_context.step_out(3, true)
end
d... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/printers/plain.rb | lib/byebug/printers/plain.rb | # frozen_string_literal: true
require_relative "base"
module Byebug
module Printers
#
# Plain text printer
#
class Plain < Base
def print(path, args = {})
message = translate(locate(path), args)
tail = parts(path).include?("confirmations") ? " (y/n) " : "\n"
message << ... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/printers/base.rb | lib/byebug/printers/base.rb | # frozen_string_literal: true
require "yaml"
module Byebug
module Printers
#
# Base printer
#
class Base
class MissedPath < StandardError; end
class MissedArgument < StandardError; end
SEPARATOR = "."
def type
self.class.name.split("::").last.downcase
end
... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/remote/client.rb | lib/byebug/remote/client.rb | # frozen_string_literal: true
require "socket"
module Byebug
module Remote
#
# Client for remote debugging
#
class Client
attr_reader :interface, :socket
def initialize(interface)
@interface = interface
@socket = nil
end
#
# Connects to the remote byeb... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/remote/server.rb | lib/byebug/remote/server.rb | # frozen_string_literal: true
require "socket"
module Byebug
module Remote
#
# Server for remote debugging
#
class Server
attr_reader :actual_port, :wait_connection
def initialize(wait_connection:, &block)
@thread = nil
@wait_connection = wait_connection
@main_lo... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/helpers/path.rb | lib/byebug/helpers/path.rb | # frozen_string_literal: true
module Byebug
module Helpers
#
# Utilities for managing gem paths
#
module PathHelper
def bin_file
@bin_file ||= File.join(root_path, "exe", "byebug")
end
def root_path
@root_path ||= File.expand_path(File.join("..", "..", ".."), __dir_... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/helpers/thread.rb | lib/byebug/helpers/thread.rb | # frozen_string_literal: true
module Byebug
module Helpers
#
# Utilities for thread subcommands
#
module ThreadHelper
def display_context(ctx)
puts pr("thread.context", thread_arguments(ctx))
end
def thread_arguments(ctx)
{
status_flag: status_flag(ctx),
... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/helpers/frame.rb | lib/byebug/helpers/frame.rb | # frozen_string_literal: true
module Byebug
module Helpers
#
# Utilities to assist frame navigation
#
module FrameHelper
def switch_to_frame(frame)
new_frame = index_from_start(frame)
return frame_err("c_frame") if Frame.new(context, new_frame).c_frame?
adjust_frame(new... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/helpers/bin.rb | lib/byebug/helpers/bin.rb | # frozen_string_literal: true
module Byebug
module Helpers
#
# Utilities for interaction with executables
#
module BinHelper
#
# Cross-platform way of finding an executable in the $PATH.
# Adapted from: https://gist.github.com/steakknife/88b6c3837a5e90a08296
#
def which(... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/helpers/var.rb | lib/byebug/helpers/var.rb | # frozen_string_literal: true
require_relative "eval"
module Byebug
module Helpers
#
# Utilities for variable subcommands
#
module VarHelper
include EvalHelper
def var_list(ary, binding = context.frame._binding)
vars = ary.sort.map do |name|
code = name.to_s
... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/helpers/file.rb | lib/byebug/helpers/file.rb | # frozen_string_literal: true
module Byebug
module Helpers
#
# Utilities for interaction with files
#
module FileHelper
#
# Reads lines of source file +filename+ into an array
#
def get_lines(filename)
File.foreach(filename).reduce([]) { |acc, elem| acc << elem.chomp }... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/helpers/reflection.rb | lib/byebug/helpers/reflection.rb | # frozen_string_literal: true
module Byebug
module Helpers
#
# Reflection utility
#
module ReflectionHelper
#
# List of "command" classes in the including module
#
def commands
constants(false)
.map { |const| const_get(const, false) }
.select { |c| ... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/helpers/string.rb | lib/byebug/helpers/string.rb | # frozen_string_literal: true
module Byebug
module Helpers
#
# Utilities for interaction with strings
#
module StringHelper
#
# Converts +str+ from an_underscored-or-dasherized_string to
# ACamelizedString.
#
def camelize(str)
str.dup.split(/[_-]/).map(&:capitali... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/helpers/toggle.rb | lib/byebug/helpers/toggle.rb | # frozen_string_literal: true
require_relative "parse"
module Byebug
module Helpers
#
# Utilities to assist breakpoint/display enabling/disabling.
#
module ToggleHelper
include ParseHelper
def enable_disable_breakpoints(is_enable, args)
raise pr("toggle.errors.no_breakpoints") i... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/helpers/parse.rb | lib/byebug/helpers/parse.rb | # frozen_string_literal: true
require "stringio"
module Byebug
module Helpers
#
# Utilities to assist command parsing
#
module ParseHelper
#
# Parses +str+ of command +cmd+ as an integer between +min+ and +max+.
#
# If either +min+ or +max+ is nil, that value has no bound.
... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/helpers/eval.rb | lib/byebug/helpers/eval.rb | # frozen_string_literal: true
module Byebug
module Helpers
#
# Utilities to assist evaluation of code strings
#
module EvalHelper
#
# Evaluates an +expression+ in a separate thread.
#
# @param expression [String] Expression to evaluate
#
def separate_thread_eval(ex... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/settings/post_mortem.rb | lib/byebug/settings/post_mortem.rb | # frozen_string_literal: true
require_relative "../setting"
module Byebug
#
# Setting to enable/disable post_mortem mode, i.e., a debugger prompt after
# program termination by unhandled exception.
#
class PostMortemSetting < Setting
def initialize
Byebug.post_mortem = DEFAULT
end
def ban... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/settings/autolist.rb | lib/byebug/settings/autolist.rb | # frozen_string_literal: true
require_relative "../setting"
require_relative "../commands/list"
module Byebug
#
# Setting for automatically listing source code on every stop.
#
class AutolistSetting < Setting
DEFAULT = 1
def initialize
ListCommand.always_run = DEFAULT
end
def banner
... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/settings/listsize.rb | lib/byebug/settings/listsize.rb | # frozen_string_literal: true
require_relative "../setting"
module Byebug
#
# Setting to customize the number of source code lines to be displayed every
# time the "list" command is invoked.
#
class ListsizeSetting < Setting
DEFAULT = 10
def banner
"Set number of source lines to list by defau... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/settings/histsize.rb | lib/byebug/settings/histsize.rb | # frozen_string_literal: true
require_relative "../setting"
module Byebug
#
# Setting to customize the number of byebug commands to be saved in history.
#
class HistsizeSetting < Setting
DEFAULT = 256
def banner
"Maximum number of commands that can be stored in byebug history"
end
def ... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/settings/fullpath.rb | lib/byebug/settings/fullpath.rb | # frozen_string_literal: true
require_relative "../setting"
module Byebug
#
# Setting to display full paths in backtraces.
#
class FullpathSetting < Setting
DEFAULT = true
def banner
"Display full file names in backtraces"
end
end
end
| ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/settings/width.rb | lib/byebug/settings/width.rb | # frozen_string_literal: true
require_relative "../setting"
module Byebug
#
# Setting to customize the maximum width of byebug's output.
#
class WidthSetting < Setting
DEFAULT = 160
def banner
"Number of characters per line in byebug's output"
end
def to_s
"Maximum width of byebu... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/settings/callstyle.rb | lib/byebug/settings/callstyle.rb | # frozen_string_literal: true
require_relative "../setting"
module Byebug
#
# Setting to customize the verbosity level for stack frames.
#
class CallstyleSetting < Setting
DEFAULT = "long"
def banner
"Set how you want method call parameters to be displayed"
end
def to_s
"Frame di... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/settings/histfile.rb | lib/byebug/settings/histfile.rb | # frozen_string_literal: true
require_relative "../setting"
module Byebug
#
# Setting to customize the file where byebug's history is saved.
#
class HistfileSetting < Setting
DEFAULT = File.expand_path(".byebug_history")
def banner
"File where cmd history is saved to. Default: ./.byebug_history... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/settings/stack_on_error.rb | lib/byebug/settings/stack_on_error.rb | # frozen_string_literal: true
require_relative "../setting"
module Byebug
#
# Setting to enable/disable the display of backtraces when evaluations raise
# errors.
#
class StackOnErrorSetting < Setting
def banner
"Display stack trace when `eval` raises an exception"
end
end
end
| ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/settings/autosave.rb | lib/byebug/settings/autosave.rb | # frozen_string_literal: true
require_relative "../setting"
module Byebug
#
# Setting for automatically saving previously entered commands to history
# when exiting the debugger.
#
class AutosaveSetting < Setting
DEFAULT = true
def banner
"Automatically save command history record on exit"
... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/settings/autopry.rb | lib/byebug/settings/autopry.rb | # frozen_string_literal: true
require_relative "../setting"
require_relative "../commands/pry"
module Byebug
#
# Setting for automatically invoking Pry on every stop.
#
class AutoprySetting < Setting
DEFAULT = 0
def initialize
PryCommand.always_run = DEFAULT
end
def banner
"Invok... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/settings/basename.rb | lib/byebug/settings/basename.rb | # frozen_string_literal: true
require_relative "../setting"
module Byebug
#
# Command to display short paths in file names.
#
# For example, when displaying source code information.
#
class BasenameSetting < Setting
def banner
"<file>:<line> information after every stop uses short paths"
end... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/settings/autoirb.rb | lib/byebug/settings/autoirb.rb | # frozen_string_literal: true
require_relative "../setting"
require_relative "../commands/irb"
module Byebug
#
# Setting for automatically invoking IRB on every stop.
#
class AutoirbSetting < Setting
DEFAULT = 0
def initialize
IrbCommand.always_run = DEFAULT
end
def banner
"Invok... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/settings/savefile.rb | lib/byebug/settings/savefile.rb | # frozen_string_literal: true
require_relative "../setting"
module Byebug
#
# Setting to customize the file where byebug's settings are saved.
#
class SavefileSetting < Setting
DEFAULT = File.expand_path("#{ENV['HOME'] || '.'}/.byebug_save")
def banner
"File where settings are saved to. Default... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/settings/linetrace.rb | lib/byebug/settings/linetrace.rb | # frozen_string_literal: true
require_relative "../setting"
module Byebug
#
# Setting to enable/disable linetracing.
#
class LinetraceSetting < Setting
def banner
"Enable line execution tracing"
end
def value=(val)
Byebug.tracing = val
end
def value
Byebug.tracing?
... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/source.rb | lib/byebug/commands/source.rb | # frozen_string_literal: true
require_relative "../command"
module Byebug
#
# Execute a file containing byebug commands.
#
# It can be used to restore a previously saved debugging session.
#
class SourceCommand < Command
self.allow_in_control = true
self.allow_in_post_mortem = true
def self.r... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/enable.rb | lib/byebug/commands/enable.rb | # frozen_string_literal: true
require_relative "../subcommands"
require_relative "../commands/enable/breakpoints"
require_relative "../commands/enable/display"
module Byebug
#
# Enabling custom display expressions or breakpoints.
#
class EnableCommand < Command
include Subcommands
self.allow_in_post... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/thread.rb | lib/byebug/commands/thread.rb | # frozen_string_literal: true
require_relative "../subcommands"
require_relative "../commands/thread/current"
require_relative "../commands/thread/list"
require_relative "../commands/thread/resume"
require_relative "../commands/thread/stop"
require_relative "../commands/thread/switch"
module Byebug
#
# Manipulat... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/disable.rb | lib/byebug/commands/disable.rb | # frozen_string_literal: true
require_relative "../subcommands"
require_relative "../commands/disable/breakpoints"
require_relative "../commands/disable/display"
module Byebug
#
# Disabling custom display expressions or breakpoints.
#
class DisableCommand < Command
include Subcommands
self.allow_in_... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/tracevar.rb | lib/byebug/commands/tracevar.rb | # frozen_string_literal: true
require_relative "../command"
module Byebug
#
# Show (and possibly stop) at every line that changes a global variable.
#
class TracevarCommand < Command
def self.regexp
/^\s* tr(?:acevar)? (?: \s+ (\S+))? # (variable-name)?
(?: \s+ (stop|nosto... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/method.rb | lib/byebug/commands/method.rb | # frozen_string_literal: true
require_relative "../command"
require_relative "../helpers/eval"
module Byebug
#
# Show methods of specific classes/modules/objects.
#
class MethodCommand < Command
include Helpers::EvalHelper
self.allow_in_post_mortem = true
def self.regexp
/^\s* m(?:ethod)? ... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/delete.rb | lib/byebug/commands/delete.rb | # frozen_string_literal: true
require_relative "../command"
require_relative "../helpers/parse"
module Byebug
#
# Implements breakpoint deletion.
#
class DeleteCommand < Command
include Helpers::ParseHelper
self.allow_in_control = true
self.allow_in_post_mortem = true
def self.regexp
/... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/frame.rb | lib/byebug/commands/frame.rb | # frozen_string_literal: true
require "pathname"
require_relative "../command"
require_relative "../helpers/frame"
require_relative "../helpers/parse"
module Byebug
#
# Move to specific frames in the backtrace.
#
class FrameCommand < Command
include Helpers::FrameHelper
include Helpers::ParseHelper
... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/var.rb | lib/byebug/commands/var.rb | # frozen_string_literal: true
require_relative "../subcommands"
require_relative "var/all"
require_relative "var/args"
require_relative "var/const"
require_relative "var/instance"
require_relative "var/local"
require_relative "var/global"
module Byebug
#
# Shows variables and its values
#
class VarCommand < ... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/set.rb | lib/byebug/commands/set.rb | # frozen_string_literal: true
require_relative "../command"
require_relative "../helpers/parse"
module Byebug
#
# Change byebug settings.
#
class SetCommand < Command
include Helpers::ParseHelper
self.allow_in_control = true
self.allow_in_post_mortem = true
def self.regexp
/^\s* set (?... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/interrupt.rb | lib/byebug/commands/interrupt.rb | # frozen_string_literal: true
require_relative "../command"
module Byebug
#
# Interrupting execution of current thread.
#
class InterruptCommand < Command
self.allow_in_control = true
def self.regexp
/^\s*int(?:errupt)?\s*$/
end
def self.description
<<-DESCRIPTION
int[err... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/down.rb | lib/byebug/commands/down.rb | # frozen_string_literal: true
require "pathname"
require_relative "../command"
require_relative "../helpers/frame"
require_relative "../helpers/parse"
module Byebug
#
# Move the current frame down in the backtrace.
#
class DownCommand < Command
include Helpers::FrameHelper
include Helpers::ParseHelper... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/catch.rb | lib/byebug/commands/catch.rb | # frozen_string_literal: true
require_relative "../command"
require_relative "../helpers/eval"
module Byebug
#
# Implements exception catching.
#
# Enables the user to catch unhandled assertion when they happen.
#
class CatchCommand < Command
include Helpers::EvalHelper
self.allow_in_post_mortem ... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/display.rb | lib/byebug/commands/display.rb | # frozen_string_literal: true
require_relative "../command"
require_relative "../helpers/eval"
module Byebug
#
# Custom expressions to be displayed every time the debugger stops.
#
class DisplayCommand < Command
include Helpers::EvalHelper
self.allow_in_post_mortem = false
self.always_run = 2
... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/up.rb | lib/byebug/commands/up.rb | # frozen_string_literal: true
require "pathname"
require_relative "../command"
require_relative "../helpers/frame"
require_relative "../helpers/parse"
module Byebug
#
# Move the current frame up in the backtrace.
#
class UpCommand < Command
include Helpers::FrameHelper
include Helpers::ParseHelper
... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/irb.rb | lib/byebug/commands/irb.rb | # frozen_string_literal: true
require_relative "../command"
require "English"
module Byebug
#
# Enter IRB from byebug's prompt
#
class IrbCommand < Command
self.allow_in_post_mortem = true
def self.regexp
/^\s* irb \s*$/x
end
def self.description
<<-DESCRIPTION
irb
... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/quit.rb | lib/byebug/commands/quit.rb | # frozen_string_literal: true
require_relative "../command"
module Byebug
#
# Exit from byebug.
#
class QuitCommand < Command
self.allow_in_control = true
self.allow_in_post_mortem = true
def self.regexp
/^\s* q(?:uit)? \s* (?:(!|\s+unconditionally))? \s*$/x
end
def self.descriptio... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/step.rb | lib/byebug/commands/step.rb | # frozen_string_literal: true
require_relative "../command"
require_relative "../helpers/parse"
module Byebug
#
# Implements the step functionality.
#
# Allows the user the continue execution until the next instruction, possibly
# in a different frame. Use step to step into method calls or blocks.
#
cla... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/where.rb | lib/byebug/commands/where.rb | # frozen_string_literal: true
require "pathname"
require_relative "../command"
require_relative "../helpers/frame"
module Byebug
#
# Show current backtrace.
#
class WhereCommand < Command
include Helpers::FrameHelper
self.allow_in_post_mortem = true
def self.regexp
/^\s* (?:w(?:here)?|bt|b... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/help.rb | lib/byebug/commands/help.rb | # frozen_string_literal: true
require_relative "../command"
require_relative "../errors"
module Byebug
#
# Ask for help from byebug's prompt.
#
class HelpCommand < Command
self.allow_in_control = true
self.allow_in_post_mortem = true
def self.regexp
/^\s* h(?:elp)? (?:\s+(\S+))? (?:\s+(\S+)... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/finish.rb | lib/byebug/commands/finish.rb | # frozen_string_literal: true
require_relative "../command"
require_relative "../helpers/parse"
module Byebug
#
# Implements the finish functionality.
#
# Allows the user to continue execution until certain frames are finished.
#
class FinishCommand < Command
include Helpers::ParseHelper
self.all... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/skip.rb | lib/byebug/commands/skip.rb | # frozen_string_literal: true
require_relative "../command"
require_relative "../helpers/parse"
module Byebug
#
# Allows the user to continue execution until the next breakpoint, as
# long as it is different from the current one
#
class SkipCommand < Command
include Helpers::ParseHelper
class << se... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/pry.rb | lib/byebug/commands/pry.rb | # frozen_string_literal: true
require_relative "../command"
require_relative "../helpers/eval"
module Byebug
#
# Enter Pry from byebug's prompt
#
class PryCommand < Command
self.allow_in_post_mortem = true
def self.regexp
/^\s* pry \s*$/x
end
def self.description
<<-DESCRIPTION
... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/info.rb | lib/byebug/commands/info.rb | # frozen_string_literal: true
require_relative "../subcommands"
require_relative "../commands/info/breakpoints"
require_relative "../commands/info/display"
require_relative "../commands/info/file"
require_relative "../commands/info/line"
require_relative "../commands/info/program"
module Byebug
#
# Shows info ab... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/debug.rb | lib/byebug/commands/debug.rb | # frozen_string_literal: true
require_relative "../command"
require_relative "../helpers/eval"
module Byebug
#
# Spawns a subdebugger and evaluates the given expression
#
class DebugCommand < Command
include Helpers::EvalHelper
def self.regexp
/^\s* debug (?:\s+(\S+))? \s*$/x
end
def s... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/save.rb | lib/byebug/commands/save.rb | # frozen_string_literal: true
require_relative "../command"
module Byebug
#
# Save current settings to use them in another debug session.
#
class SaveCommand < Command
self.allow_in_control = true
self.allow_in_post_mortem = true
def self.regexp
/^\s* sa(?:ve)? (?:\s+(\S+))? \s*$/x
end
... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/list.rb | lib/byebug/commands/list.rb | # frozen_string_literal: true
require_relative "../command"
require_relative "../source_file_formatter"
require_relative "../helpers/file"
require_relative "../helpers/parse"
module Byebug
#
# List parts of the source code.
#
class ListCommand < Command
include Helpers::FileHelper
include Helpers::Par... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/untracevar.rb | lib/byebug/commands/untracevar.rb | # frozen_string_literal: true
require_relative "../command"
module Byebug
#
# Stop tracing a global variable.
#
class UntracevarCommand < Command
def self.regexp
/^\s* untr(?:acevar)? (?:\s+ (\S+))? \s*$/x
end
def self.description
<<-DESCRIPTION
untr[acevar] <variable>
... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/continue.rb | lib/byebug/commands/continue.rb | # frozen_string_literal: true
require_relative "../command"
require_relative "../helpers/parse"
module Byebug
#
# Implements the continue command.
#
# Allows the user to continue execution until the next stopping point, a
# specific line number or until program termination.
#
class ContinueCommand < Com... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/next.rb | lib/byebug/commands/next.rb | # frozen_string_literal: true
require_relative "../command"
require_relative "../helpers/parse"
module Byebug
#
# Implements the next functionality.
#
# Allows the user the continue execution until the next instruction in the
# current frame.
#
class NextCommand < Command
include Helpers::ParseHelpe... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/undisplay.rb | lib/byebug/commands/undisplay.rb | # frozen_string_literal: true
require_relative "../command"
require_relative "../helpers/parse"
module Byebug
#
# Remove expressions from display list.
#
class UndisplayCommand < Command
include Helpers::ParseHelper
self.allow_in_post_mortem = true
def self.regexp
/^\s* undisp(?:lay)? (?:\... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/history.rb | lib/byebug/commands/history.rb | # frozen_string_literal: true
require_relative "../command"
require_relative "../helpers/parse"
module Byebug
#
# Show history of byebug commands.
#
class HistoryCommand < Command
include Helpers::ParseHelper
self.allow_in_post_mortem = true
def self.regexp
/^\s* hist(?:ory)? (?:\s+(?<num_... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/kill.rb | lib/byebug/commands/kill.rb | # frozen_string_literal: true
require_relative "../command"
module Byebug
#
# Send custom signals to the debugged program.
#
class KillCommand < Command
self.allow_in_control = true
def self.regexp
/^\s* kill \s* (?:\s+(\S+))? \s*$/x
end
def self.description
<<-DESCRIPTION
... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/break.rb | lib/byebug/commands/break.rb | # frozen_string_literal: true
require_relative "../command"
require_relative "../helpers/eval"
require_relative "../helpers/file"
require_relative "../helpers/parse"
require_relative "../source_file_formatter"
module Byebug
#
# Implements breakpoint functionality
#
class BreakCommand < Command
include Hel... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/restart.rb | lib/byebug/commands/restart.rb | # frozen_string_literal: true
require_relative "../command"
require_relative "../helpers/bin"
require_relative "../helpers/path"
require "shellwords"
require "English"
require "rbconfig"
module Byebug
#
# Restart debugged program from within byebug.
#
class RestartCommand < Command
include Helpers::BinHel... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/show.rb | lib/byebug/commands/show.rb | # frozen_string_literal: true
require_relative "../command"
module Byebug
#
# Show byebug settings.
#
class ShowCommand < Command
self.allow_in_control = true
self.allow_in_post_mortem = true
def self.regexp
/^\s* show (?:\s+(?<setting>\w+))? \s*$/x
end
def self.description
<... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/condition.rb | lib/byebug/commands/condition.rb | # frozen_string_literal: true
require_relative "../command"
require_relative "../helpers/parse"
module Byebug
#
# Implements conditions on breakpoints.
#
# Adds the ability to stop on breakpoints only under certain conditions.
#
class ConditionCommand < Command
include Helpers::ParseHelper
self.a... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/edit.rb | lib/byebug/commands/edit.rb | # frozen_string_literal: true
require_relative "../command"
module Byebug
#
# Edit a file from byebug's prompt.
#
class EditCommand < Command
self.allow_in_control = true
self.allow_in_post_mortem = true
def self.regexp
/^\s* ed(?:it)? (?:\s+(\S+))? \s*$/x
end
def self.description
... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/var/local.rb | lib/byebug/commands/var/local.rb | # frozen_string_literal: true
require_relative "../../helpers/var"
module Byebug
#
# Reopens the +var+ command to define the +local+ subcommand
#
class VarCommand < Command
#
# Shows local variables in current scope
#
class LocalCommand < Command
include Helpers::VarHelper
self.al... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/var/const.rb | lib/byebug/commands/var/const.rb | # frozen_string_literal: true
require_relative "../../helpers/eval"
module Byebug
#
# Reopens the +var+ command to define the +const+ subcommand
#
class VarCommand < Command
#
# Shows constants
#
class ConstCommand < Command
include Helpers::EvalHelper
self.allow_in_post_mortem = ... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/var/global.rb | lib/byebug/commands/var/global.rb | # frozen_string_literal: true
module Byebug
#
# Reopens the +var+ command to define the +global+ subcommand
#
class VarCommand < Command
#
# Shows global variables
#
class GlobalCommand < Command
include Helpers::VarHelper
self.allow_in_post_mortem = true
def self.regexp
... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/var/args.rb | lib/byebug/commands/var/args.rb | # frozen_string_literal: true
require_relative "../../helpers/var"
module Byebug
#
# Reopens the +var+ command to define the +args+ subcommand
#
class VarCommand < Command
#
# Information about arguments of the current method/block
#
class ArgsCommand < Command
include Helpers::VarHelper... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/var/instance.rb | lib/byebug/commands/var/instance.rb | # frozen_string_literal: true
require_relative "../../helpers/var"
module Byebug
#
# Reopens the +var+ command to define the +instance+ subcommand
#
class VarCommand < Command
#
# Shows instance variables
#
class InstanceCommand < Command
include Helpers::VarHelper
self.allow_in_p... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/var/all.rb | lib/byebug/commands/var/all.rb | # frozen_string_literal: true
require_relative "../../helpers/var"
module Byebug
#
# Reopens the +var+ command to define the +all+ subcommand
#
class VarCommand < Command
#
# Shows global, instance and local variables
#
class AllCommand < Command
include Helpers::VarHelper
self.al... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/thread/current.rb | lib/byebug/commands/thread/current.rb | # frozen_string_literal: true
require_relative "../../helpers/thread"
module Byebug
#
# Reopens the +thread+ command to define the +current+ subcommand
#
class ThreadCommand < Command
#
# Information about the current thread
#
class CurrentCommand < Command
include Helpers::ThreadHelper
... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/thread/resume.rb | lib/byebug/commands/thread/resume.rb | # frozen_string_literal: true
require_relative "../../helpers/thread"
module Byebug
#
# Reopens the +thread+ command to define the +resume+ subcommand
#
class ThreadCommand < Command
#
# Resumes the specified thread
#
class ResumeCommand < Command
include Helpers::ThreadHelper
def... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/thread/list.rb | lib/byebug/commands/thread/list.rb | # frozen_string_literal: true
require_relative "../../helpers/thread"
module Byebug
#
# Reopens the +thread+ command to define the +list+ subcommand
#
class ThreadCommand < Command
#
# Information about threads
#
class ListCommand < Command
include Helpers::ThreadHelper
def self.r... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/thread/stop.rb | lib/byebug/commands/thread/stop.rb | # frozen_string_literal: true
require_relative "../../helpers/thread"
module Byebug
#
# Reopens the +thread+ command to define the +stop+ subcommand
#
class ThreadCommand < Command
#
# Stops the specified thread
#
class StopCommand < Command
include Helpers::ThreadHelper
def self.... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/thread/switch.rb | lib/byebug/commands/thread/switch.rb | # frozen_string_literal: true
require_relative "../../helpers/thread"
module Byebug
#
# Reopens the +thread+ command to define the +switch+ subcommand
#
class ThreadCommand < Command
#
# Switches to the specified thread
#
class SwitchCommand < Command
include Helpers::ThreadHelper
... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/disable/breakpoints.rb | lib/byebug/commands/disable/breakpoints.rb | # frozen_string_literal: true
require_relative "../../helpers/toggle"
module Byebug
#
# Reopens the +disable+ command to define the +breakpoints+ subcommand
#
class DisableCommand < Command
#
# Disables all or specific breakpoints
#
class BreakpointsCommand < Command
include Helpers::Tog... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/disable/display.rb | lib/byebug/commands/disable/display.rb | # frozen_string_literal: true
require_relative "../../helpers/toggle"
module Byebug
#
# Reopens the +disable+ command to define the +display+ subcommand
#
class DisableCommand < Command
#
# Enables all or specific displays
#
class DisplayCommand < Command
include Helpers::ToggleHelper
... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/enable/breakpoints.rb | lib/byebug/commands/enable/breakpoints.rb | # frozen_string_literal: true
require_relative "../../helpers/toggle"
module Byebug
#
# Reopens the +enable+ command to define the +breakpoints+ subcommand
#
class EnableCommand < Command
#
# Enables all or specific breakpoints
#
class BreakpointsCommand < Command
include Helpers::Toggle... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/enable/display.rb | lib/byebug/commands/enable/display.rb | # frozen_string_literal: true
require_relative "../../helpers/toggle"
module Byebug
#
# Reopens the +enable+ command to define the +display+ subcommand
#
class EnableCommand < Command
#
# Enables all or specific displays
#
class DisplayCommand < Command
include Helpers::ToggleHelper
... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/info/breakpoints.rb | lib/byebug/commands/info/breakpoints.rb | # frozen_string_literal: true
module Byebug
#
# Reopens the +info+ command to define the +breakpoints+ subcommand
#
class InfoCommand < Command
#
# Information about current breakpoints
#
class BreakpointsCommand < Command
self.allow_in_post_mortem = true
def self.regexp
/^... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/info/line.rb | lib/byebug/commands/info/line.rb | # frozen_string_literal: true
module Byebug
#
# Reopens the +info+ command to define the +line+ subcommand
#
class InfoCommand < Command
#
# Information about current location
#
class LineCommand < Command
self.allow_in_post_mortem = true
def self.regexp
/^\s* l(?:ine)? \s*... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/info/file.rb | lib/byebug/commands/info/file.rb | # frozen_string_literal: true
require_relative "../../helpers/file"
module Byebug
#
# Reopens the +info+ command to define the +file+ subcommand
#
class InfoCommand < Command
#
# Information about a particular source file
#
class FileCommand < Command
include Helpers::FileHelper
in... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/info/display.rb | lib/byebug/commands/info/display.rb | # frozen_string_literal: true
module Byebug
#
# Reopens the +info+ command to define the +display+ subcommand
#
class InfoCommand < Command
#
# Information about display expressions
#
class DisplayCommand < Command
self.allow_in_post_mortem = true
def self.regexp
/^\s* d(?:... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/commands/info/program.rb | lib/byebug/commands/info/program.rb | # frozen_string_literal: true
module Byebug
#
# Reopens the +info+ command to define the +args+ subcommand
#
class InfoCommand < Command
#
# Information about arguments of the current method/block
#
class ProgramCommand < Command
self.allow_in_post_mortem = true
def self.regexp
... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/interfaces/script_interface.rb | lib/byebug/interfaces/script_interface.rb | # frozen_string_literal: true
module Byebug
#
# Interface class for command execution from script files.
#
class ScriptInterface < Interface
def initialize(file, verbose = false)
super()
@verbose = verbose
@input = File.open(file)
@output = verbose ? $stdout : StringIO.new
@er... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/interfaces/local_interface.rb | lib/byebug/interfaces/local_interface.rb | # frozen_string_literal: true
module Byebug
#
# Interface class for standard byebug use.
#
class LocalInterface < Interface
EOF_ALIAS = "continue"
def initialize
super()
@input = $stdin
@output = $stdout
@error = $stderr
end
#
# Reads a single line of input using R... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/interfaces/remote_interface.rb | lib/byebug/interfaces/remote_interface.rb | # frozen_string_literal: true
require_relative "../history"
module Byebug
#
# Interface class for remote use of byebug.
#
class RemoteInterface < Interface
def initialize(socket)
super()
@input = socket
@output = socket
@error = socket
end
def read_command(prompt)
su... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/interfaces/test_interface.rb | lib/byebug/interfaces/test_interface.rb | # frozen_string_literal: true
module Byebug
#
# Custom interface for easier assertions
#
class TestInterface < Interface
attr_accessor :test_block
def initialize
super()
clear
end
def errmsg(message)
error.concat(prepare(message))
end
def print(message)
outpu... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/processors/script_processor.rb | lib/byebug/processors/script_processor.rb | # frozen_string_literal: true
require_relative "command_processor"
module Byebug
#
# Processes commands from a file
#
class ScriptProcessor < CommandProcessor
#
# Available commands
#
def commands
super.select(&:allow_in_control)
end
def repl
while (input = interface.read_... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
deivid-rodriguez/byebug | https://github.com/deivid-rodriguez/byebug/blob/994848cd3b20ff6218d73f790ab7afbaed92358e/lib/byebug/processors/command_processor.rb | lib/byebug/processors/command_processor.rb | # frozen_string_literal: true
require "forwardable"
require_relative "../helpers/eval"
require_relative "../errors"
module Byebug
#
# Processes commands in regular mode.
#
# You can override this class to create your own command processor that, for
# example, whitelists only certain commands to be executed... | ruby | BSD-2-Clause | 994848cd3b20ff6218d73f790ab7afbaed92358e | 2026-01-04T15:50:47.976763Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.