展示HN:我写了一本书 – 调试TypeScript应用 (测试版)
Show HN: I wrote a book – Debugging TypeScript Applications (in beta)

原始链接: https://pragprog.com/titles/aodjs/debugging-typescript-applications/

## 构建不易崩溃的 Web 应用:摘要 Andrey Ozornin 的《构建不易崩溃的 Web 应用》专注于掌握调试和编写更易于维护的代码——随着软件复杂性的增长,这些技能变得越来越重要。本书认为,虽然*编写*代码很容易,但确保其*可靠运行*才是真正的挑战。 它承诺在短短一周内,为开发者提供实用的技术,从而大大提高调试效率。这包括理解堆栈跟踪、实施强大的错误处理、有效优先处理问题以及执行根本原因分析。 本书利用现成的工具,如 Chrome DevTools,以及核心软件设计原则、日志记录策略和监控技术。最终,它旨在赋能开发者构建更高质量的 Web 应用程序,减少花费在修复错误上的时间,并投入更多时间进行创新。实际练习需要基于 Chromium 的浏览器和 IDE。

Hacker News 新闻 | 过去 | 评论 | 提问 | 展示 | 工作 | 提交 登录 展示 HN:我写了一本书 – 调试 TypeScript 应用 (beta 版) (pragprog.com) 5 分,作者 ozornin,29 分钟前 | 隐藏 | 过去 | 收藏 | 4 条评论 enz 16 分钟前 | 下一个 [–] > 你需要:一台带有 Chromium 内核的浏览器,如 Chrome、Vivaldi 或 Brave [...] 我认为这本书主要关注客户端 TS 应用?回复 ozornin 8 分钟前 | 父评论 | 下一个 [–] 大部分是。它涉及调试单元测试和服务器端代码,以及适用于一般调试的方法论,但实际部分几乎完全是客户端的。回复 sebg 27 分钟前 | 上一个 | 下一个 [–] 你觉得这个过程怎么样?回复 cranberryturkey 27 分钟前 | 上一个 [–] 氛围编码?回复 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

Build Web Apps That Don't Break

by Andrey 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, showing you both useful (and underused) features of your browser’s developer console and also ways of writing your code that makes it easier to test (and less likely to need debugging in the first place).
Debug with ease and focus on what truly matters most: building exceptional web applications.


Writing code has never been a problem; getting that code to work is. This book makes it easier, showing you both powerful debugging techniques and also ways to structure to code to make debugging simpler. In just one week you’ll master debugging skills 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:

2025/12/02

B1.0

First beta release

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

Table of Contents

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.
联系我们 contact @ memedata.com