Chrome DevTools Tutorial
Learn Chrome DevTools step by step: 36 lessons in 9 chapters with examples, quizzes, diagrams and projects.
Start learning →
of lessons completed
Getting Started
- What Is Chrome DevTools? A Tour of the Panels Learn what Chrome DevTools is, what each main panel is for, and how to choose the right panel for a task, with a runnable stand-in that maps problems to panels.
- Opening DevTools, Docking and Layout Open Chrome DevTools with menus and shortcuts, dock it to the side or bottom, undock it, use the drawer and the Inspect tool, with runnable shortcut stand-ins.
- The Command Menu and Keyboard Shortcuts Use the DevTools Command Menu to run commands, open files and screenshot pages, plus essential shortcuts, with a runnable fuzzy-search stand-in that shows how it ranks.
- Device Mode and Responsive Testing Use Device mode to test responsive layouts, touch, pixel ratio and slow networks, and learn its limits, with runnable stand-ins for media queries and pixel density.
Elements and Styles
- The Elements Panel and the DOM Tree Explore the Elements panel: the live DOM tree, selecting and editing nodes, breakpoints on DOM changes, search, and copy selector, with runnable DOM-tree stand-ins.
- The Styles Pane and the CSS Cascade Read the Styles pane, understand crossed-out rules, specificity and source order, edit CSS live, and use the changes view, with a runnable cascade resolver stand-in.
- The Box Model and Layout Debugging Debug spacing and layout with the box model diagram, Flexbox and Grid overlays, and size tools, with runnable stand-ins for box-sizing and flex space calculations.
- Computed Styles, Inheritance and Style Sources Use the Computed tab to see final values, trace inherited properties and custom properties, and find which rule set each value, with a runnable inheritance stand-in.
- Pseudo-States, Colors and Live Style Experiments Force :hover and :focus, use the color picker and contrast checker, emulate dark mode and print, and debug animations, with runnable color and contrast calculators.
Console and Sources
- Console Basics and Logging Methods Learn the Console panel: message levels, filters, console.log, table, group, time, assert, count and trace, plus format specifiers, with runnable examples.
- Console Utilities and Live Expressions Use the Console Utilities API: $0, $_, $, $$, $x, copy, monitor, debug, getEventListeners and queryObjects, with runnable stand-ins that model how they work.
- The Sources Panel and Breakpoints Navigate the Sources panel, set line, conditional, logpoint, DOM, XHR and event breakpoints, and pause on exceptions, with a runnable conditional-breakpoint stand-in.
- Stepping Through Code and Reading the Call Stack Step over, into and out of functions, read the call stack, scope and watch panes, use async stack traces and blackboxing, with a runnable call-stack simulator.
- Snippets, Overrides, Workspaces and Source Maps Save reusable snippets, keep edits with local overrides and workspaces, and debug original code with source maps, including a runnable Base64 VLQ source-map decoder.
Network Panel
- The Network Panel: Requests and the Waterfall Record requests, read the request table, the waterfall and the timing summary, filter by type, and find slow or large resources, with a runnable waterfall printer.
- HTTP Status Codes, Headers and Caching in DevTools Read status codes, request and response headers, cookies and cache behavior in the Network panel, and debug 304, CORS and Cache-Control, with runnable stand-ins.
- Filtering, Throttling and Blocking Requests Simulate slow networks, offline mode and failing resources: throttling profiles, custom conditions, request blocking and replay, with a runnable transfer-time calculator.
- Request Timing, Copy as cURL and HAR Files Read request timing and initiator chains, copy requests as cURL or fetch, and export, parse and share HAR files safely, with runnable HAR and cURL stand-ins.
Performance Panel
- A Tour of the Performance Panel Open the Performance panel, learn its toolbar, tracks and summary tabs, and understand the 16 ms frame budget that every smooth page has to respect.
- Recording and Reading the Flame Chart Record a trace, zoom into the Main track, and learn to read a flame chart: call stacks, self time versus total time, Bottom-Up and the Call Tree.
- Core Web Vitals in DevTools Measure Largest Contentful Paint, Cumulative Layout Shift and Interaction to Next Paint in DevTools, learn the thresholds, and trace each metric to its cause.
- Long Tasks and Main Thread Work Why the browser's single main thread matters, how DevTools marks tasks over 50 ms, how Total Blocking Time is computed, and ways to break up long tasks.
Application and Storage
- The Application Panel at a Glance A map of the Application panel: manifest, service workers, storage areas, cache, background services, how to clear site data and what quota means.
- Cookies, Local Storage and Session Storage Read the cookie table in DevTools, understand HttpOnly, Secure and SameSite, see why cookies are sent to servers, and compare Local storage with Session storage.
- Service Workers and Cache Storage Understand the service worker lifecycle, use the Application panel to update, bypass and unregister workers, inspect Cache storage and test offline mode.
- The Memory Panel and Heap Snapshots Take heap snapshots, compare them, understand shallow versus retained size, detached DOM nodes and allocation profiling, and learn the three-snapshot technique.
Lighthouse and Audits
- Running Your First Lighthouse Audit Run Lighthouse from DevTools: choose mode and device, pick categories, read the report, and learn why scores differ between runs and how to make audits repeatable.
- Lighthouse Scores and Metrics Understand the Lighthouse performance score: the weighted metrics (FCP, LCP, TBT, CLS, Speed Index), how raw values become 0-100, and which metric to attack first.
- Accessibility, SEO and Best Practices Audits What the three non-performance Lighthouse categories check, how to fix the most common failures, and why automated audits only cover part of real accessibility.
Debugging Workflows
- Debugging Layout and CSS Bugs A repeatable method for layout bugs: find the winning rule, read the box model, check specificity and cascade, inspect flex and grid, and test fixes live.
- Debugging Slow Page Loads Diagnose a slow page: read the Network waterfall, find the critical rendering path, spot render-blocking resources and late discoveries, and prioritize fixes.
- Finding Memory Leaks A hands-on workflow for memory leaks: spot growth with the Performance monitor, reproduce it, compare heap snapshots, read retainers and fix listeners, timers and detached DOM.
- Debugging Network and CORS Failures Trace failed requests step by step: read status codes and the Headers tab, tell CORS from network errors, understand preflights and fix missing headers.
Projects and Practice
- Project: Audit a Slow Page A guided project: audit a deliberately slow page with the Network, Performance and Lighthouse tools, write findings, set a budget and verify each fix.
- Project: Build a Trace Analyzer Understand the Chrome trace file format by building a small analyzer: parse trace events, compute self time, find long tasks and top functions, and print a report.
- Practice: A DevTools Debugging Checklist Practice mapping symptoms to the right DevTools panel, work through scenario questions, and take away a checklist plus keyboard shortcuts for faster debugging.