Skip to content
UNASPACE

Browser DevTools

This content is for Frontend. Switch to the latest version for up-to-date documentation.

Browser Developer Tools (DevTools) are a set of web developer tools built directly into modern web browsers. They allow you to inspect, debug, and optimize your web pages.

You can open DevTools using several methods:

  • Right-click anywhere on a page and select Inspect.
  • Windows/Linux: F12 or Ctrl + Shift + I
  • macOS: Cmd + Option + I

View and edit the HTML and CSS of a page in real-time.

  • Inspect: Click the arrow icon to select an element on the page.
  • Live Edit: Double-click tags or CSS properties to change them instantly.
  • Box Model: View the computed margin, border, padding, and dimensions.

Execute JavaScript and see logs, warnings, and errors.

  • console.log(): The most common way to debug by printing values.
  • Interactive: You can type variables or functions directly into the console to test them.

Monitor all network requests (images, scripts, API calls).

  • Status Codes: Check if requests succeeded (200) or failed (404, 500).
  • Payload: View exactly what data was sent to or received from a server.

Debug JavaScript using breakpoints.

  • Breakpoints: Pause code execution at a specific line.
  • Step Over/Into: Move through your code line-by-line to find logic errors.

Inspect web storage and cookies.

  • Local Storage / Session Storage: View data saved by your scripts.
  • Cookies: Manage and delete browser cookies.
ActionWindows/LinuxmacOS
Open DevToolsF12 / Ctrl+Shift+ICmd+Opt+I
Console TabCtrl+Shift+JCmd+Opt+J
Search All FilesCtrl+Shift+FCmd+Opt+F
Clear ConsoleCtrl+LCmd+K

Click the Device Toggle icon (mobile/tablet icon) to test how your website looks on different screen sizes and devices.

Built with passion by Ngineer Lab