Module: DebugSkipMissingSources

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

Instance Method Summary collapse

Instance Method Details

#get_source_code(path) ⇒ Object



11
12
13
14
15
16
# File 'lib/stack-service-base/debugger.rb', line 11

def get_source_code(path)
  super
rescue Errno::ENOENT, Errno::ENOTDIR => e
  DEBUGGER__.warn "Skipped missing source for Chrome breakpoint: #{path} (#{e.message})"
  @src_map[path] ||= '' # keep DevTools happy even though the file is absent
end