Class: Byebug::DAP::Command::Source

Inherits:
Byebug::DAP::Command show all
Defined in:
lib/byebug/dap/commands/source.rb

Constant Summary

Constants inherited from Byebug::DAP::Command

EVAL_ERROR

Instance Method Summary collapse

Methods inherited from Byebug::DAP::Command

command, execute, #execute_on_thread, #initialize, #log, register!, resolve!, #safe_execute, #started!, #stopped!

Methods included from SafeHelpers

#safe

Constructor Details

This class inherits a constructor from Byebug::DAP::Command

Instance Method Details

#executeObject



7
8
9
10
# File 'lib/byebug/dap/commands/source.rb', line 7

def execute
  return unless path = can_read_file!(args.source.path)
  respond! body: { content: IO.read(path) }
end