New here; not long released My First Add-On to AMO.
Had been tearing my hair out trying to figure out why browser.local.storage was manifestly working fine but the debugger wasn’t showing anything in the Storage tab, and eventually found this useful and explanatory bugzilla entry:
Turns out the debugger shows data from the localStorage web API, not the browser.local.storage webextension API. An important distinction, though when the browser knows you have clicked on ‘Debug My Webextension’ there is an argument that such behaviour could perhaps be modified for the better and is at least certainly confusing.
FWIW, I found a workaround, involving typing the following line into the debugger console (NB - not the regular console, where this doesn’t work as it doesn’t know what ‘browser’ is):
browser.storage.local.get(null, function(items) { console.log(items); });
Two questions: a) is there a better way (new here see above), and b) what is the likelihood of getting a fix for this into the Storage tab of the debugger itself?