Did you know the user interface of DevTools is built with HTML, CSS, and JavaScript?
This means you can inspect and debug DevTools with DevTools.
Letās find out how!
Contents
hide
Chrome
To debug DevTools in Chromium-based browsers, such as Chrome, Brave or Edge:
- Open DevTools on any browser tab (
F12
) - Undock DevTools into a separate window
- Press
CTRL
+SHIFT
+I
or (Cmd
+OPT
+I
on macOS) to open a second DevTools window
The second DevTools window now targets the first one and you are now able to inspect the Elements and play around with it.
š„Ā Check out this step-by-step video guide:
Firefox
To debug DevTools in Firefox:
- Open DevTools on any browser tab (Hotkey:
Q
) - Open theĀ Settings page with
F1
- Under the Advanced settings label, check theĀ Enable browser chrome and add-on debugging toolboxes
- From the main Firefox menu, click theĀ Open application menu (hamburger menu)
- ClickĀ More tools then Browser Console
A new DevTools window will pop up that will target the first DevTools window.
Happy coding āŗ
Let me know what you think about this article in the comments section below.
If you find this article helpful, please share it with others and subscribe to the blog to support me, and receive a bi-monthly-ish e-mail notification on my latest articles.