NEW: Claude Code Security — research preview →

Troubleshooting

Diagnose and fix issues with GitHub Copilot in VS Code

Read time: 4 min

title: "Troubleshooting" description: "Diagnose and fix issues with GitHub Copilot in VS Code" section: "Copilot" readTime: "4 min"

Troubleshooting Copilot

View Extension Logs

  1. Open Command Palette (Ctrl+Shift+P)
  2. Run Developer: Set Log Level → set to Trace for GitHub Copilot and GitHub Copilot Chat
  3. Run Output: Show Output Channels → select GitHub Copilot or GitHub Copilot Chat
  4. Reproduce the issue, review errors near the failure, then restore the previous log levels (trace output is verbose)

Collect Network Diagnostics

If you cannot connect to Copilot:

  1. Command Palette → GitHub Copilot: Chat Diagnostics
  2. Compare any failed checks with your firewall, proxy, and VPN settings. A clean report covers only the connections it tested

Common causes: corporate firewalls, VPNs, proxy servers. See the FAQ.

Debug Chat Interactions

/troubleshoot command

Type /troubleshoot followed by your question in chat (in the Agents window, use /troubleshoot #session and pick the session):

  • /troubleshoot how many tokens did I use?
  • /troubleshoot list all paths you tried to load customizations

For local sessions, enable the experimental setting github.copilot.chat.agentDebugLog.fileLogging.enabled and reload the window before reproducing the issue; for Agent Host sessions enable chat.agentHost.agentDebugLog.enabled. Neither captures earlier activity.

Agent Debug Logs Panel (Preview)

Shows a chronological event log: tool call sequences, LLM requests, token usage, prompt file discovery, errors.

Open: Chat view ... menu → Show Agent Debug Logs

You can attach a snapshot to ask the AI to diagnose a specific interaction.

Chat Debug View

Shows raw LLM request/response data: full system prompt, user prompt, context, and tool payloads.

Open: Chat view ... menu → Show Chat Debug View

Troubleshoot MCP Servers

  1. Command Palette → MCP: List Servers
  2. Select a server → view status and actions
  3. Show Output — view server logs
  4. Restart Server — fix a misbehaving server

Common Issues

ProblemSolution
Inline suggestions not appearingCheck: Copilot not disabled globally/per-language; subscription active; network accessible; allowance not reached
Chat not workingRun Code: Check for Updates; verify sign-in and plan; check the Copilot status dashboard for credit or rate limits; retry in a new chat session
Agents not availableEnable chat.agent.enabled; contact org admin if policy-managed
Customizations not appliedChat view context menu → Diagnostics; check the Agent Debug Logs for loaded files, file location, frontmatter, and applyTo. Prompt files are not applied automatically, invoke them in chat
Subscription not detectedSign out and sign in with correct account; verify subscription at github.com/settings/copilot

Provide Feedback

  • Ghost text: Hover over suggestion → select Send Copilot Completion Feedback
  • NES: Gutter arrow → select Feedback
  • General issues: Help menu → Report Issue → VS Code Extension → GitHub Copilot Chat

Logs and exports can contain code, prompts, and file paths. Review them and never include credentials or secrets when sharing.