Where can I see the key/value pairs saved by Plasmo's storage API in the dev tools?

I checked in the the "Application" tab, but there is nothing in storage there. Thank you!
10 Replies
tetec1
tetec1OP•2y ago
@avi12 maybe you know the answer to that one
Avi
Avi•2y ago
await chrome.storage.local.get();
await chrome.storage.local.get();
Keep in mind that since Plasmo is JSON.stringify()'ing the values, they are stored this way in the storage You'd usually want to run the "regular" storage methods for debugging purposes
tetec1
tetec1OP•2y ago
nice! that is exactly what I wanted. I don't understand why it's not visible in the dev tools though, or maybe I didn't look in the right place.
Avi
Avi•2y ago
That's a great question tbh, you could perhaps file a request in the Chromium issue tracker thingy Though tbh it's more complicated How will Firefox tackle this? It supports both the chrome and browser namcespaces https://issuetracker.google.com
lab
lab•2y ago
There's also an inspector utils inside the storage module that log the data out into a table as well
Avi
Avi•2y ago
@tetec1
Arcane
Arcane•2y ago
@avi12 has reached level 29. GG!
tetec1
tetec1OP•2y ago
thanks, I'll check that out. It's not in the documentation right? Do you accept PRs for that? I could add a comment to help newbies like me trying to figure out extensions and the web API at the same time.
YAGPDB.xyz
YAGPDB.xyz•2y ago
Gave +1 Rep to @louisgv
lab
lab•2y ago
Yup - PR of any shape/size are very welcome!
Want results from more Discord servers?
Add your server