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 從公開儲存庫中收錄這些內容。

檢舉或申請下架