About This Title

Pages: 180
Published: July 2025
ISBN: 9798888651988
In Beta

Debugging JavaScript

by Andrei Ozornin

New code becomes cheaper every day, but maintenance does not. Bugs are faster, subtler, and harder to catch, and dealing with them is increasingly difficult. This book will make it easier. Learn to read stack traces like a story, wrap risky code in bulletproof guardrails, and triage issues so the critical ones always get fixed first. Master root-cause analysis, design gracefully failing systems, trace data through callbacks and promises, and make your code transparent with smart monitoring. Debug with ease and focus on what truly matters most: building exceptional web applications.

eBook Formats:

  • PDF for desktop/tablets

  • epub for Apple Books, e-readers

  • mobi for Kindle readers

Get all eBook formats here for $26.95 (USD)

Add to Cart we accept visa, mastercard, amex, discover, paypal

This book is in Beta, final version expected Jul 2025

Beta Books: What do I get?


Writing new code is becoming easier every day. Unfortunately, maintenance is not. But with hands-on instruction as your guide and just one week of your time, you can master powerful debugging techniques that will save you hours every day.

Read stack traces as if they were a story, wrap risky code in bulletproof guardrails, and triage issues so that critical ones always get fixed first. Master root-cause analysis, design gracefully failing systems, trace data through tangled chains of callbacks and promises, and make resolving future problems easier for everyone with smart error monitoring. Surprise yourself by the power of familiar Chrome developer tools that have always been readily available to you.

Starting from a foundation of process methodologies and software design principles, you’ll continue on through practical techniques like logging and interactive debugging before arriving at monitoring and debuggability. In the end, you’ll have the knowledge you were missing and the skills you need to help you raise the quality bar and focus on what truly matters most: building exceptional web applications.

Happy debugging!

What You Need

A computer with a Chromium-based browser such as Chrome, Vivaldi, or Brave, and an IDE such as WebStorm or VSCode. Along the way, you’ll be installing command-line tools, so be sure you have permission to do so.

Resources

Releases:

  • B1.0 2025/12/02

Contents & Extracts

Note: Contents and extracts of beta books will change as the book is developed.

Table of Contents

  • Change History
    • B1.0: Monthname xx, yyyy
  • Acknowledgements
  • Welcome
    • Is This Book for Me?
    • What’s in This Book?
    • How to Read This Book
    • Before We Begin
  • Printing and Interpreting Errors
  • Setting Guardrails with Throw and Catch
    • Fail-Fast and Fault-Tolerant Systems
    • Advanced Logging
    • Wrapping Up
  • Prioritizing Bugs
    • Estimating Bug Severity
    • Estimating Bug Reach
    • Estimating Bug Fix Time
    • Prioritizing Bugs Using RICE
    • Prioritizing Beyond Methodologies
    • Wrapping Up
  • Finding the Root Cause
    • Finding the Reproduction Steps
    • Using Systems of Root-Cause Analysis
    • Using the Scientific Method
    • Finding the suspect commit using git bisect
    • Wrapping Up
  • Designing Software That Doesn’t Break
    • Write Clean Code
    • Let Your Computer Help You
    • Assure Quality with Automated Testing
    • Ship with Confidence
    • Wrapping Up
  • Following the Data Flow
    • Defining What “Fixed” Means
    • Overcoming Blank Console Paralysis
    • “Getting to Know the Sources Panel"https://media.pragprog.com/titles/aodjs/extract-sources-panel.pdf
    • Navigating the Code
    • Using Breakpoints
    • Improving the Fix
    • Using Source Maps
    • Wrapping Up
    • Bonus Exercise
  • Debugging Asynchronous Operations
    • Network Panel in Chrome Developer Tools
    • Debug Parallel Operations
    • Logging on a Webpage
    • Wrapping Up
  • Make Your Code Debuggable
    • Setting Up Sentry
    • Monitoring Errors
    • Structured Logs
    • Adding Performance Traces
    • Wrapping Up

Author

Andrey Ozornin is a tech lead at Framer who loves shipping meaningful products. With more than 12 years of experience at companies such as Miro, Booking.com, and Wrike, as well as smaller start-ups, he knows that the biggest obstacle to creating great products is software quality, and he wants to share battle-tested ways to improve it.

eBook Formats:

  • PDF for desktop/tablets

  • epub for Apple Books, e-readers

  • mobi for Kindle readers

Get all eBook formats here for $26.95 (USD)

Add to Cart we accept visa, mastercard, amex, discover, paypal

This book is in Beta, final version expected Jul 2025

Beta Books: What do I get?

Related Titles:

About This Title

Pages: 180
Published: July 2025
ISBN: 9798888651988
Edition: 1
In Beta