Getting started with IndexedDB inspection in the Microsoft Edge DevTools

Getting started with IndexedDB inspection in the Microsoft Edge DevTools

The Windows 10 April 2018 Update introduced an all-new IndexedDB manager for the Microsoft Edge DevTools, allowing you to inspect your database, sort your data, and delete it—all from the Debugger in the DevTools. In this post, we’ll walk you through getting started with the new IndexedDB manager, and some improvements we have planned for the future!

IndexedDB in the DevTools

Once you have created your database and added an object store, you can expand the IndexedDB node in the Resource picker in the Debugger to see a list of origins (the domain, application layer protocol, and port of a URL of the document where the script is being executed) from the resources loaded by the page. Your new database (or databases if you’re creating more than one) will be listed under the origin that created it, along with its object stores.

Screen cpature showing the Resource Picker in the Microsoft Edge DevTools

You can check out what’s in each object store by clicking on it, which will open it as a tab in the Debugger.

Screen capture showing the IndexedDB tab in the Microsoft Edge DevTools

Managing IndexedDB data

When your app changes your IndexedDB data, you won’t see those changes in the DevTools in real time. You’ll need to click the Refresh button (or press Ctrl+F5) to update your object store or index.

The simple sample app searches images using the Bing Search API and saves those images as Base64 strings to an object store in an IndexedDB database. In the animation below, note that when we save an image, it won’t appear in our object store until we refresh (Ctrl+F5) In the IndexedDB manager.

Animation showing the object store being manually refreshed to show updates

Data in your object store or index can be deleted per row via the keyboard (Del) and context menus (right-click and select Delete item). You can also delete all IndexedDB data stored for the current user in Microsoft Edge using the Microsoft Edge Settings menu under “…” > Settings > Clear browsing data > Cookies and saved website data.

What’s next for the IndexedDB manager

In future releases, we’re planning to take all of the data storage solutions currently housed in the Resource picker in the Debugger—Local Storage, Cache, IndexedDB, etc.—and move them to a new tool we’re calling Storage. We think this change will make it easier and more intuitive to find, inspect, and manage web storage on your page in the DevTools.

Further our on our backlog, we’re evaluating a number of features for the IndexedDB manager in future releases:

  • Adding new data to an object store or index
  • Editing your existing key-value pairs directly
  • Making it easier to clear object stores or indices
  • Making it easier to clear all web storage solutions on your page
  • Adding blob support for IndexedDB in Microsoft Edge

Tell us what you think

We hope the IndexedDB manager makes the DevTools easier to use and improves your productivity in Microsoft Edge. If you encounter any bugs or have feature suggestions, the best way to flag them for our attention is via the Feedback Hub. You can launch the Feedback Hub straight from the DevTools using the icon (pictured below) in the top-right corner of the DevTools.

Screen capture of the Microsoft Edge DevTools with the "send feedback" icon highlighted

These features are available beginning with the Windows 10 April 2018 Update. If you want to get your hands on these (and other) improvements on an earlier or Windows, check out the Microsoft Edge DevTools Preview App!

You can learn more in our docs, as well as in the IndexedDB content on MDN. As always, reach out to us with any questions, feedback, or feature requests on Twitter, Feedback Hub, or UserVoice.

Zoher Ghadyali, Program Manager, Microsoft Edge DevTools

Source: Getting started with IndexedDB inspection in the Microsoft Edge DevTools

About KENNETH 19694 Articles
지락문화예술공작단

Be the first to comment

Leave a Reply

Your email address will not be published.


*


이 사이트는 스팸을 줄이는 아키스밋을 사용합니다. 댓글이 어떻게 처리되는지 알아보십시오.