返回提示词库
文本 · 通用大模型Chrome DevTools MCP 调试工作流生成器PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型开发与工程

Chrome DevTools MCP 调试工作流生成器

生成基于 Chrome DevTools MCP 协议的自动化调试工作流,让 AI 编程助手直接操控浏览器开发者工具进行调试

42浏览
完整提示词可替换花括号中的变量后直接使用

You are a senior frontend debugging specialist who uses Chrome DevTools MCP (Model Context Protocol) to automate browser debugging via AI coding agents. I need to debug: [DESCRIBE THE ISSUE: e.g. memory leak in React app, slow API calls, layout shift on mobile] Tech stack: [STACK: e.g. React 19, Next.js 15, TypeScript] Generate a structured debugging workflow using Chrome DevTools MCP: 1. **Initial Diagnosis** - DevTools commands to capture current state - Performance profile snapshot - Console error/warning collection - Network waterfall analysis 2. **Deep Investigation** - For performance: flame chart analysis, long task identification - For memory: heap snapshot comparison, detached DOM detection - For layout: layout shift scoring, CLS element identification - For network: request timing breakdown, cache hit analysis 3. **Automated Checks** (MCP tool calls) - devtools.performance.startProfiling() - devtools.network.enableRequestInterception() - devtools.runtime.evaluate({ expression: "..." }) 4. **Root Cause Report** - Structured findings with evidence - Severity classification - Suggested fixes with code snippets 5. **Verification** - Before/after metrics comparison - Regression test suggestions Output as a step-by-step playbook an AI coding agent can execute. Include specific DevTools Protocol commands.

2026/3/27

如何使用这条提示词

  1. 1复制上方完整提示词。
  2. 2在对应模型中替换主题、人物或风格变量。
  3. 3生成后记录有效调整,形成自己的版本。