VS Code February events – Agent Sessions Day on Feb 19th
Dismiss this update
This article covers diagnostic tools and techniques for troubleshooting AI-related issues in VS Code. Use these tools to identify problems with network connectivity, customization files, and AI responses.
The log files for the GitHub Copilot extension are stored in the standard log location for Visual Studio Code extensions. Use these logs to diagnose connection issues, extension errors, and unexpected behavior.
To view detailed logs:
To switch between output channels, select GitHub Copilot or GitHub Copilot Chat from the dropdown menu on the right side of the Output panel.
If you encounter problems connecting to GitHub Copilot, collect network connectivity diagnostics to identify firewall, proxy, or VPN issues.
For more information about network configuration, see Network and firewall configuration for Copilot.
The Chat Debug view shows the details of AI requests and responses, including the system prompt, user prompt, context sent to the language model, and tool invocations. Use this view to understand how the AI interprets your requests and what context it uses to generate responses.
To open the Chat Debug view:
...) in the Chat view.Alternatively, run Developer: Show Chat Debug View from the Command Palette.
Learn more about the Chat Debug view.
The chat customization diagnostics view shows all currently loaded custom agents, prompt files, instruction files, and skills. Use this view to troubleshoot issues with customization files that aren't being applied or are causing errors.
To open the diagnostics view:
This opens a markdown document listing:
If a customization file isn't being applied, check the diagnostics view to verify it was loaded successfully and review any error messages.
MCP servers extend chat capabilities by connecting to external services. If an MCP server isn't working correctly, you can view its logs and restart it.
To troubleshoot MCP servers:
Learn more about configuring and debugging MCP servers.
If you encounter issues that you can't resolve, report them to help improve GitHub Copilot:
When reporting issues, include relevant information from the Copilot logs to help diagnose the problem.