Some Cool Features to try with Chrome DevTools
Tags: chromedevtools, webdev
Published: 2022-03-02 09:24:57

Chrome DevTools is the set of web developer tools, built directly into the Google Chrome browser, which are extremely useful and important to front-end debugging. It comes with a variety of features and we are going to discuss a few of the newest and lesser known ones here.

To open DevTools:
 * you can right-click and choose `Inspect` from the drop-down menu, or
 * `Command + Option + C` for Mac or `Control + Shift + C` for Windows, Linux, and Chrome OS.

## 1. Command Palette

You can open the DevTools command palette with `Control + Shift + P`.

![Command Palette](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/afa4dtveqty147r9setk.png)

---

## 2. Full-Page Accessibility Tree

In the Elements panel of DevTools, open the Accessibility pane and select the Enable full-page accessibility tree checkbox. 

![Accessibility Pane](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0yn533lhispank7h73sw.png)

Then, reload DevTools and you will see a new accessibility button in the Elements panel.

![Accessibility Button](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1xacz9auq5yfee778n3o.png)

You can click on it to toggle to the Full-page accessibility tree view. You can expand nodes or click to see details in the Accessibility pane.  

![Accessibility Tree](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0jwiepgiomqk4ebbqef9.png)

--- 

## 3. Emulation

You can emulate dark theme using DevTools to view how you page looks in Chrome's auto dark theme.

This can be done using the Rendering Pane which can be accessed through the Command Palette (Show Rendering command) or using More Tools from the More Options Menu (vertical three dots) and choosing Rendering option. Then enable the Emulate auto dark mode dropdown.

![Auto Dark Mode](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nfzz9695m9q85b9bvomt.png)

![Coursera Dark Mode](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/enamq1enpkgcxsuexe62.png)

  
---

## 4. Screenshots

There are four types of screenshots available with DevTools:
 * Screenshot (standard) - just the screenshot of the current view
 * Area screenshot - screenshot of the selected area of the webpage
 * Node screenshot - screenshot of the selected node (piece of individual content such as poll, article, etc.)
 * Full size screenshot - screenshot of the entire website (all the scrollable content)

The simplest method of taking screenshots using DevTools is through the Command Palette (`Control + Shift + P`):

![Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vwyklk1pr7y0fcovomm1.png)
 
---

## 5. Recorder Panel

You can use the Recorder panel of DevTools to record, replay and measure user flows.

You can open the Recorder Panel using the Command Palette/Menu, or by choosing Recorder from the More Tools under the three dot menu (More options (vertical three dots) -> More tools -> Recorder).

![Recorder Panel](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1eaomhf328aw2iydj2qn.png)

Once opened, click on the `Start new recording` button to begin.

![Demo Recording](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p5qthejwynx7bftybmn8.png)

Once you are done implementing different user actions (such as clicking buttons, closing windows, logging in, etc.), you can end the recording. This recording can be replayed, saved, deleted or used to measure performance.

![Demo Recorded](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nj50arsc1p0laygzvgjj.png)

You can click on the arrow next to the user event listed to view it in detail. You can also delete the step, or add steps before or after the step using the three dots menu.

![Click event details](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bq5loywv94xnlvmk7t6o.png)
  

---

These were some of the exciting tools provided by Chrome DevTools that you can use while working on web development, to make debugging easier.

**Credits:** [Top 10 Chrome DevTools Tips and Tricks](https://areknawo.com/top-10-chrome-devtools-tips-tricks/)