如何查看firefox中的IndexedDB内容 [英] How to view IndexedDB content in firefox

查看:170
本文介绍了如何查看firefox中的IndexedDB内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在玩Firefox中的IndexedDB(Ubuntu)

有什么方法可视化IndexedDB数据库内容?
或者我必须这样做pro​​grammatic-ally?

解决方案

出血边缘Chromium builds据报道允许您查看IndexedDB内容在Chrome devtools的Resources面板中,但是我只知道一种非编程方式查看Firefox IndexedDB内容的方法,那就是直接加载.sqlite文件。

Firefox的IndexedDB .sqlite文件位于OS X上的 / Users / {USER} / Library / Application Support / Firefox / Profiles / {PROFILE} / indexedDB ,应该是 C:\ Users \ {USER} \AppData\Roaming\Mozilla\Firefox\Profiles\ {PROFILE} 在Windows上。



我使用优秀(免费)的Firefox工具 SQLite Manager ,它是跨平台的。



保持最小的一件事d然而,内容往往是存储为二进制斑点,并可能不是人类可读的。键存储为文本,所以他们应该可以手动读取。



更新虽然本地文件仍然是一个很好的方式来查看IDB数据库和商店,Chrome现在在资源面板中提供了很好的工具。

I've been playing with IndexedDB in Firefox (Ubuntu)

Is there any way to visualize IndexedDB databases contents ? Or do I have to do it programmatic-ally ?

解决方案

Bleeding edge Chromium builds reportedly allow you to view IndexedDB content in the Resources panel of the Chrome devtools, but only I know of one way to view Firefox IndexedDB content non-programmically and that's to load the .sqlite file directly.

Firefox's IndexedDB .sqlite files are located at /Users/{USER}/Library/Application Support/Firefox/Profiles/{PROFILE}/indexedDB on OS X and should be C:\Users\{USER}\AppData\Roaming\Mozilla\Firefox\Profiles\{PROFILE} on Windows.

I use the excellent (and free) Firefox tool SQLite Manager, which is cross platform.

One thing to keep in mind however is that the contents are often stored as binary blobs and are likely not to be human readable. Keys are stored as text however so they should be able to be read by hand.

Update Although local files remain a great way to view IDB databases and stores, Chrome does now have great tooling available in the Resources panel.

这篇关于如何查看firefox中的IndexedDB内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆