Module: SkipMissingRegexBreakpoints

Defined in:
lib/stack-service-base/debugger.rb

Instance Method Summary collapse

Instance Method Details

#add_line_breakpoint(req, b_id, path) ⇒ Object



36
37
38
39
40
41
42
# File 'lib/stack-service-base/debugger.rb', line 36

def add_line_breakpoint(req, b_id, path)
  return super if File.exist?(path)

  DEBUGGER__.warn "Skipping breakpoint for missing source: #{path}"
  send_response req, breakpointId: b_id, locations: []
  # Returning keeps Chrome happy and avoids queuing the request
end