class Byebug::DAP::Command::SetExceptionBreakpoints

Constants

FILTERS

“The request configures the debuggers response to thrown exceptions. ”If an exception is configured to break, a ‘stopped’ event is fired (with reason ‘exception’).

Public Instance Methods

execute() click to toggle source
# File lib/byebug/dap/commands/set_exception_breakpoints.rb, line 15
def execute
  Byebug.catchpoints.clear

  args.filters.each do |f|
    case f
    when 'all'
      Byebug.add_catchpoint('Exception')
    end
  end

  respond!
end