module Byebug
def self.run_init_script(out = handler.interface)
program you are debugging, in the directory where you invoke byebug.
file, one generic in your home directory, and another, specific to the
different from your home directory. Thus, you can have more than one init
working directory. This is only done if the current directory is
Reads and executes the commands from init file (if any) in the current
Runs normal byebug initialization scripts.
def self.run_init_script(out = handler.interface) cwd_script = File.expand_path(File.join('.', INIT_FILE)) run_script(cwd_script, out, true) if File.exist?(cwd_script) home_script = File.expand_path(File.join(ENV['HOME'].to_s, INIT_FILE)) if File.exist?(home_script) && cwd_script != home_script run_script(home_script, out, true) end end