mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 19:10:22 +01:00
1.1 KiB
1.1 KiB
How to take a State Dump
Sometimes a UI bug is hard to reproduce, but we'd like to rapidly develop against the application state that caused the bug.
In this case, a MetaMask developer will sometimes ask a user with a bug to perform a "state dump", so we can use some internal tools to reproduce and fix the bug.
To take a state dump, follow these steps:
- Get the MetaMask popup to the point where it shows the bug (the developer will probably specify exactly where).
- Right click on the extension popup UI, and in the menu, click "Inspect". This will open the developer tools.
- In case it isn't already selected, click the "Console" tab in the new Developer Tools window.
- In the console, type this command exactly:
logState()
. This should print a bunch of JSON text into your console. - Copy that printed JSON text
- Optional: Annonymize that text if you'd like (you may change all instances of an account address to another valid account address, for example) We may automate the anonymization in the future.
- Send that JSON text to the developer, ideally pasting it in the issue regarding the bug.