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:
parent
47979996e8
commit
3f9fc0f690
4 changed files with 22 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue