Get HAR logs, console logs, and screenshot to provide as much context as possible when reporting issues to developers. You can drop the HAR log file into the Network panel of any Chrome Dev Tools Window, and it will populate it.
You need to have Chrome Dev Tools open for HAR log only.
This Chrome Extension is not published to the Chrome Web Store, you need to install it in developer mode. You can find those instructions here
- Click on Extension Icon
- Select what you want to capture
- Screenshot
- Console Logs
- HAR log
- Chrome Dev Tools needs to be open to get HAR log
- Click on Get Snapshot
- The items selected will now be downloaded, 1 file per item
- Clone this repository.
- Open up Chrome and go to the
chrome://extensions/
page (Window โ Extensions). - Enable developer mode (if it's not already).
- Click on
Load unpacked extension
. - Select the folder for this extension.
- Getting Screenshot
- Takes screenshot of active tab using Chrome Tabs API
- Getting Console Logs
popup.js
==>background.js
then Chrome Debugger API is used to get console logs for the active tab and download them using Chrome Downloads API
- Getting HAR log
popup.js
==>background.js
==>devtools.js
then Chrome DevTools API is used to get the HAR logchrome.devtools.network.getHAR()
and downloaded using Chrome Downloads API
- How to use Chrome Downloads API
- Extending Chrome Dev Tools
- How to use Chrome Debugger API
- Messaging between
popup,js
,background.js
, anddevtools.js
- What a HTTP Archive Format (HAR) is made of
Go to the bottom of the chrome://extensions/
page, click on Keyboard shortcuts
and add the shortcut of your choice.
- Icon made by Pixel perfect from www.flaticon.com
- thingsinjars' devtools-extension helped me understand how to extend DevTools