May 26, 2021 Chrome A guide to developing tools
The Resources panel allows you to examine the local resources of your application, including IndexedDB, Web SQL Database, Local and Session storage, cookies, and application cache resources. You can also quickly visually examine app resources, including pictures, fonts, and style sheets.
You can review the storage status and related pages of your IndexedDB database and objects with an object storage record, and you can clear the records stored by the object.
If you view the object storage as a page, click the Previous or Next Page button. You can also select the starting page of a record by specifying the key of the record.
If you want to clear the object store, there are two ways:
To view the properties of the database, select it in the list of databases.
You can examine the contents of the Web SQL database and use SQL commands on it.
You can use SQL commands to execute queries to the Web SQL database, and you can view the results of queries in a table format. When you enter a command or table name, DevTools provides code hints to tell you the supported SQL commands and statements, as well as the names of all the tables contained in the database.
If you want to execute SQL commands on a database:
The cookies resource tab allows you to view the details of cookies created by http headers or JavaScript. You can clear individual cookies under a particular domain name, or all cookies.
When you expand the cookies directory, it displays a list of domain names under the main document and the framework for all loads. S electing one of the Frame Groups displays all of its cookies, including all the resources in that framework. This grouping has two areas to note:
Cookies in selected groups display the following fields:
You can clear (delete) a single cookie, all cookies in a selected group, or all cookies under a particular domain name. If the same cookie under a given domain name is referenced by two groups, deleting all cookies under that domain name affects both groups.
To clear a single cookie, you can choose one of two options:
There are several ways to clear all cookies in a particular group:
To clear all cookies under a particular domain name:
Be aware of the following for this operation:
You can also refresh the table to see how the page cookies change.
To refresh the cookie table, click the refresh button at the bottom of the resource panel.
You can examine Chrome's cached resources, which are determined by the app cache manifest file indicated in the current document. Y ou can view the current state of the program app cache (for example, idle or download status), as well as the browser's connection status. (online or offline)
Loaded resources are displayed as tables, each of which contains the following properties:
The Resources panel uses icons of different colors (green, yellow, red) to display the current status of the app cache. The status values that may appear in the next interview and the corresponding description:
State | Describe |
---|---|
Free | The app cache is idle |
Check | Loading profile and checking for updates |
Download | The resource inventory has changed and new resources are being downloaded and added to the cache |
Update preparation | The new version of the app cache is ready for use |
Expired | The app cache group has expired |
The local and session storage panels allow you to browse, edit, create, and delete local and session storage key pairs created using the Web Storage API.
To remove key-value pairs, you can do so in one of the following ways:
To add a key value pair:
To edit an existing key-value pair, take one of the following actions:
To refresh the data in the table, click the refresh button at the bottom of the panel.
You can view the resources of the main document, including pictures, scripts, fonts, and all add-ons. The top-level directory of page resources is the document item, including the primary document, as well as nested items.
You can expand an item to view resources organized by type, expand a type to see all resources of that type, and select a resource to preview its status in the right panel. Here's a preview of a font resource:
The picture preview includes information such as dimensions, file size, MIME type, and picture URL.
Tip: