1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:48:14 +00:00

Browser+LibWeb: Add "Dump Local Storage" item to Browser's Debug menu

This commit is contained in:
Andreas Kling 2022-02-08 19:50:14 +01:00
parent 47979996e8
commit 3f9fc0f690
4 changed files with 22 additions and 0 deletions

View file

@ -146,4 +146,14 @@ Vector<String> Storage::supported_property_names() const
return m_map.keys();
}
void Storage::dump() const
{
dbgln("Storage ({} key(s))", m_map.size());
size_t i = 0;
for (auto const& it : m_map) {
dbgln("[{}] \"{}\": \"{}\"", i, it.key, it.value);
++i;
}
}
}