-
Notifications
You must be signed in to change notification settings - Fork 21
Debug Panel Workflows
This guide helps users troubleshoot agent behavior with the VS Code Agent Debug Panel.
The debug panel provides runtime details for each chat turn:
- Loaded instructions and customizations
- Selected agent and model
- Tool invocations and outcomes
- Sub-agent handoffs and return payloads
- Completion timing and token usage (when available)
Use this view when an agent appears to skip a required step, ignores a customization, or returns incomplete output.
- Open Command Palette.
- Run
Developer: Open Agent Debug Panel. - Re-run the prompt you want to inspect.
If the panel is empty, run one prompt after opening the panel so events are captured.
Use this when an agent misses an expected check such as keyboard navigation or heading structure.
- Confirm the expected instruction file was loaded.
- Confirm the file you edited matches the instruction
applyToglob. - Check whether a specialist handoff happened.
- Check tool outputs for parse errors or failed searches.
- Re-run with a narrower scope prompt and compare the event trace.
Common cause: instruction scope mismatch (for example, *.tsx rule while editing a .md file).
Use this when an orchestrator says it delegated work but results are incomplete.
- Find the handoff event and inspect the prompt sent to the sub-agent.
- Verify required inputs were present (paths, URLs, config, issue list).
- Check the returned payload for required fields.
- If fields are missing, retry with explicit structured-output requirements.
Expected structured outputs should include rule ID, severity, location, remediation, and confidence.
Use this when scans or searches return zero results unexpectedly.
- Locate the failing tool invocation.
- Check input arguments such as
includePattern, URL, or file path. - Check whether the command was run in the expected workspace folder.
- Retry once with corrected parameters.
Do not repeatedly retry the same failing call without changing inputs.
Use this for web verification workflows.
- Confirm browser tools are enabled in settings:
workbench.browser.enableChatTools: true
- Confirm a dev server is running.
- Check for browser tool calls (
open_browser_page, screenshot actions). - If unavailable, proceed in manual verification mode and record that status.
- Correct agent selected
- Expected instruction file loaded
- Correct file type matched by
applyTo - Required config files present
- Tool errors reviewed
- Handoff payload validated
When filing an issue, include:
- Prompt text
- Agent name
- File path(s)
- Debug panel event snippet showing failure
- Expected behavior
- Actual behavior
This makes fixes deterministic and easier to validate.
- Accessibility Lead
- Web Accessibility Wizard
- Document Accessibility Wizard
- Alt Text and Headings
- ARIA Specialist
- Contrast Master
- Forms Specialist
- Keyboard Navigator
- Link Checker
- Live Region Controller
- Modal Specialist
- Tables Data Specialist
- Word Accessibility
- Excel Accessibility
- PowerPoint Accessibility
- PDF Accessibility
- Office Scan Config
- PDF Scan Config
- Testing Coach
- WCAG Guide