How to inspect contents of storage.local in Chrome Packaged App?

后端 未结 2 1704
生来不讨喜
生来不讨喜 2020-12-30 10:22

Is there some way (extension, or special debug option) to inspect contents of storage in Chrome Packaged App, other than using javascript console?

Resources tab onl

相关标签:
2条回答
  • 2020-12-30 11:00

    After I've realised that there is really no other option but JS console, I've created devtools extension (took 4 hours to create initial version), which can inspect chrome.storage.

    So now there is such tool=)

    Sources

    0 讨论(0)
  • 2020-12-30 11:00

    Try just typing:

    chrome.storage.local.get(function(data) {
      console.log(data);
    }); 
    

    then look in the console.

    0 讨论(0)
提交回复
热议问题