Browser Debugging

aj-geddes/useful-ai-prompts/skills/browser-debugging

作者 aj-geddes3f5182cfd739无许可证355 个星标收录于 2026年10月8日更新于 2026年10月8日仓库7个月前更新

Debug client-side issues using browser developer tools. Identify JavaScript errors, styling issues, and performance problems in the browser.

AI 生成的概览

指导使用浏览器开发者工具调试客户端问题,如 JavaScript 错误、样式问题和性能问题。

功能
该技能提供在浏览器中使用开发者工具诊断和修复客户端问题的指导。内容涵盖 JavaScript 错误、布局与样式问题、性能问题、用户交互问题、网络请求失败以及动画异常。它指向关于开发者工具基础、调试技巧、常见问题与解决方案以及性能调试的参考指南。
适用场景
当网页或客户端应用出现异常、需要在浏览器中排查时使用。适用于 JavaScript 错误、布局或样式问题、性能变慢、交互缺陷、网络请求失败和动画异常。
运行要求
不附带脚本,仅为说明文档和参考文档。需要能够使用浏览器开发者工具,例如 Chrome DevTools。

Browser Debugging

Table of Contents

Overview

Browser debugging tools help identify and fix client-side issues including JavaScript errors, layout problems, and performance issues.

When to Use

  • JavaScript errors
  • Layout/styling issues
  • Performance problems
  • User interaction issues
  • Network request failures
  • Animation glitches

Quick Start

Minimal working example:

yaml
Chrome DevTools Tabs:
Elements/Inspector:  - Inspect HTML structure  - Edit HTML/CSS in real-time  - View computed styles  - Check accessibility tree  - Modify DOM
Console:  - View JavaScript errors  - Execute JavaScript  - View console logs  - Monitor messages  - Clear errors
Sources/Debugger:  - Set breakpoints  - Step through code  - Watch variables  - Call stack view  - Conditional breakpoints
Network:  - View all requests// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
Browser DevTools Fundamentals [blocked]Browser DevTools Fundamentals
Debugging Techniques [blocked]Debugging Techniques
Common Issues & Solutions [blocked]Common Issues & Solutions
Performance Debugging [blocked]Performance Debugging

Best Practices

✅ DO

  • Follow established patterns and conventions
  • Write clean, maintainable code
  • Add appropriate documentation
  • Test thoroughly before deploying

❌ DON'T

  • Skip testing or validation
  • Ignore error handling
  • Hard-code configuration values

来源与署名

来源:aj-geddes/useful-ai-prompts位于skills/browser-debugging提交3f5182c

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架