class Byebug::Printers::Base

def locate(path)

def locate(path)
  result = nil
  contents.each do |_, contents|
    result = parts(path).reduce(contents) do |r, part|
      r && r.key?(part) ? r[part] : nil
    end
    break if result
  end
  fail MissedPath, "Can't find part path '#{path}'" unless result
  result
end