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

时光总嘲笑我的痴心妄想 提交于 2019-11-29 09:23:31

问题


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 only allows inspection of localStorage/sessionStorage (which is disabled in packaged apps)


回答1:


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




回答2:


Try just typing:

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

then look in the console.



来源:https://stackoverflow.com/questions/18679828/how-to-inspect-contents-of-storage-local-in-chrome-packaged-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!