回答
出血边缘Chromium build据报道允许您在Chrome devtools的Resources面板中查看IndexedDB内容,但只知道一种非编程方式查看Firefox IndexedDB内容的方法,那就是直接加载.sqlite文件。
Firefox的IndexedDB.sqlite文件位于OS X上的/Users/{USER}/Library/Application Support/Firefox/Profiles/{PROFILE}/indexedDB
,在Windows上应该为C:\Users\{USER}\AppData\Roaming\Mozilla\Firefox\Profiles\{PROFILE}
。
我使用优秀的(免费的)Firefox工具SQLite Manager,它是跨平台的。然而
有一点要记住的是,内容往往存储为二进制斑点,并有可能不被人类可读。键被存储为文本,所以它们应该能够被手动读取。
更新尽管本地文件仍然是查看IDB数据库和商店的好方法,但Chrome现在在“资源”面板中提供了很好的工具。
你可以试试我的indexeddbviewer,它位于http://linq2indexeddb.codeplex.com。
下面的事情,你需要做的: - 添加下列引用到你的页面:
<script type="text/javascript" src="../Scripts/jquery-1.7.2.js"> </script>
<script type="text/javascript" src="../Scripts/jquery-ui-1.8.20.js"> </script>
<script type="text/javascript" src="../Scripts/Linq2IndexedDB.js"> </script>
<script type="text/javascript" src="../Scripts/IndexedDBViewer.js"> </script>
这意味着你需要得到的jQuery + jQuery UI的 而linq2indexedDB(这是我的lib和你也可以在http://linq2indexeddb.codeplex.com上得到它)。
,并使其工作在增加体内的以下内容:
<body>
<p><label id="lblDatabaseName" for="txtDatabaseName">Database name:</label> <input type="text" id="txtDatabaseName" /><input type="button" id="btnViewDatabase" value="View database" /></p>
<div id="tabs">
<ul>
</ul>
</div>
</body>
我塔伊以尽快制定出一个更简单的方法。
的另一种方法是只用我的linq2indexeddb库,并创建它像这样一个新的实例:
var db = window.linq2indexedDB("Database name", null, true)
,如果你这样做,你可以调用属性查看器,这将使你的所有信息关于indexeddb数据库。
db.viewer
我刚刚下载了Firefox的IndexedDB浏览器插件。它运作良好。一旦下载它位于:
工具> Web开发者> IndexedDB的浏览器
https://addons.mozilla.org/en-US/firefox/addon/indexeddb-browserupdated-fix/
编辑: 由于火狐26 IndexedDB的文件已经从
{PROFILE}/indexedDB/到
{PROFILE}/storage/persistent/当前版本(0.1。 4)不处理这种变化。但是,它可以通过符号链接轻松解决。在Ubuntu
由于这个插件没有被更新,所以有人做了一个调整后的版本:https:// addons。 mozilla.org/en-US/firefox/addon/indexeddb-browserupdated-fix/ – 2014-09-16 20:28:06
已经有一段时间了,不过谢谢@JW。我更新了链接。 – 2015-11-17 21:31:17
火狐IndexedDB的位置是:
~/.mozilla/firefox/*.default/storage/persistent/
或
~/.mozilla/firefox-trunk/*.default/storage/persistent/
在Firefox的新版本中,开发者工具带有一个方便的存储检查。
https://developer.mozilla.org/en-US/docs/Tools/Storage_Inspector
目前你必须使用Firefox的每晚构建得到它
- 1. 您如何看待DynamicViewModel类?
- 2. 如何看待1000线在Linux上
- 3. 我该如何看待VidoeView onStop()动作?
- 4. 如何看待Linq to Entities查询?
- 5. 如何看待函数的内容?
- 6. Rails协会如何看待幕后?
- 7. 人们如何看待jira studio?
- 8. 如何看待Mac OS X中的TextView?
- 9. 如何看待Mono的jitted代码?
- 10. 您如何看待SDK样本?
- 11. 等待的对象框在Firefox
- 12. Webdriver - 等待在Firefox中不工作
- 13. 如何看待的console.log在IntelliJ IDEA的使用PhoneGap的
- 14. 如何看待第一份文件在SAP Business One
- 15. PHP如何看待类 - 仅在包含文件中?
- 16. 如何看待“不为模型查询结果”在Laravel
- 17. 如何在Firefox检查器中查看CSS框
- 18. 如何查看在控制台中运行的Firefox功能?
- 19. 如何在Firefox中查看“生成的HTML代码”?
- 20. 如何在Firefox WebExtension中查看后台脚本的console.log输出?
- 21. 我如何在Firefox
- 22. 如何看待我使用类创建的对象,如数组
- 23. dpi值看待安卓
- 24. 正确看待输出Laravel
- 25. 在Firefox中查看更好的XML
- 26. Firefox插件查看请求
- 27. firefox查看源代码
- 28. 如何在等待图像加载到Firefox中时加载图像
- 29. 没有窗体的按钮在Firefox中看起来不好看
- 30. 等待文件复制到Firefox扩展
将看看铬......每个人都不断地说IndexedDB的是未来。现在我发现自己在黑暗的房间里用叉子狩猎蝴蝶。无论如何,谢谢你的回答。 – 2012-04-13 14:50:04
只需设置一个用户组。随意发送非简单问题的电子邮件,我会尽力回答。 http://groups.google.com/group/indexeddb-users?msg=new&lnk=gcis – buley 2012-04-13 15:02:06
SqlLite Manager非常棒。谢谢你的提示。是的,它将值显示为blob,但至少我看到了所有的对象库,键等。 – 2013-07-27 18:45:00