Skip to content

Latest commit

 

History

History
140 lines (90 loc) · 6.62 KB

File metadata and controls

140 lines (90 loc) · 6.62 KB
title author ms.author ms.date ms.topic ms.prod keywords
View And Edit Local Storage With Microsoft Edge DevTools
MSEdgeTeam
msedgedevrel
01/06/2020
article
microsoft-edge
microsoft edge, web development, f12 tools, devtools

View And Edit Local Storage With Microsoft Edge DevTools

This guide shows you how to use Microsoft Edge DevTools to view, edit, and delete localStorage key-value pairs.

View localStorage keys and values

  1. Click the Application tab to open the Application panel. The Manifest pane is shown by default.

    Figure 1

    The Manifest pane
    The Manifest pane

  2. Expand the Local Storage menu.

    Figure 2

    The Local Storage menu shows two domains: https://business.bing.com and https://www.bing.com
    The Local Storage menu

  3. Click a domain to view its key-value pairs.

    Figure 3

    The localStorage key-value pairs for the https://www.bing.com domain
    The localStorage key-value pairs for the https://www.bing.com domain

  4. Click a row of the table to view the value in the viewer below the table.

    Figure 4

    Viewing the value of the eventLogQueue_Online key
    Viewing the value of the eventLogQueue_Online key

Create a new localStorage key-value pair

  1. View the localStorage key-value pairs of a domain.

  2. Double-click the empty part of the table. DevTools creates a new row and focuses your cursor in the Key column.

    Figure 5

    The empty part of the table to double-click in order to create a new key-value pair
    The empty part of the table to double-click in order to create a new key-value pair

Edit localStorage keys or values

  1. View the localStorage key-value pairs of a domain.

  2. Double-click a cell in the Key or Value column to edit that key or value.

    Figure 6

    Editing a localStorage key
    Editing a localStorage key

Delete localStorage key-value pairs

  1. View the localStorage key-value pairs of a domain.

  2. Click the key-value pair that you want to delete. DevTools highlights it blue to indicate that it is selected.

  3. Press the Delete key or click Delete Selected Delete Selected.

Delete all localStorage key-value pairs for a domain

  1. View the localStorage key-value pairs of a domain.

  2. Click Clear All Clear All.

Interact with localStorage from the Console

Since you are able to run JavaScript in the Console, and since the Console has access to the JavaScript contexts of the page, it is possible to interact with localStorage from the Console.

  1. Use the JavaScript contexts menu to change the JavaScript context of the Console if you want to access the localStorage key-value pairs of a domain other than the page that is displayed.

    Figure 7

    Changing the JavaScript context of the Console
    Changing the JavaScript context of the Console

  2. Run your localStorage expressions in the Console, the same as you do in your JavaScript.

    Figure 8

    Interacting with localStorage from the Console
    Interacting with localStorage from the Console

Note

Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons Attribution 4.0 International License.
The original page is found here and is authored by Kayce Basques (Technical Writer, Chrome DevTools & Lighthouse).

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.