View logs to troubleshoot GitHub Copilot-related errors in your IDE.
GitHub Copilot Pro, GitHub Copilot Free, or GitHub Copilot Business.
The location of the log files depends on the JetBrains IDE you are using. For more information, see Configuring GitHub Copilot in your environment.
These steps describe how to view and collect the log files for the following JetBrains IDEs:
The GitHub Copilot extension logs to the IDEA log location for IntelliJ plugins.
idea.log
For more information, see the Locating IDE log files in the IntelliJ documentation.
If you find the log file doesn't contain enough information to resolve an issue, it may help to enable debug logging temporarily. This can be especially helpful for debugging network-related issues.
In the menu bar, click Help, select Diagnostic Tools, and click Debug Log Settings....
In the "Custom Debug Log Configuration" window, add a new line with the following content, then click OK.
#com.github.copilot:trace
Keep using your IDE until you encounter the issue again, then collect the log file as described in Collecting log files.
When you have the information you need, disable debug mode by removing #com.github.copilot:trace from the "Custom Debug Log Configuration" window.
If you encounter problems connecting to GitHub Copilot due to network restrictions, firewalls, or your proxy setup, use the following troubleshooting steps.
If you're using a custom certificate, ensure the certificate is installed correctly in the operating system, see Troubleshooting network errors for GitHub Copilot. Then use the following troubleshooting steps.
The log files for the GitHub Copilot extension are stored in the standard log location for Visual Studio extensions.
The log files for the GitHub Copilot extension are stored in the standard log location for Visual Studio Code extensions. The log files are useful for diagnosing connection issues.
Alternatively, you can open the log folder for Visual Studio Code extensions in your system's file explorer. This is useful if you need to forward the log files to the support team.
In rare cases, errors might not be propagated to the corresponding error handlers and are not logged in the regular locations. If you encounter errors and there is nothing in the logs, you may try to see the logs from the process running VS Code and the extension.
Open the VS Code Command Palette
Type "Toggle", and then select Developer: Toggle Developer Tools from the list.
In the Developer Tools window, select the Console tab to see any errors or warnings.
To check if GitHub Copilot is operational, run the following command in Vim/Neovim:
:Copilot status
The log files for the GitHub Copilot extension for Xcode are stored in ~/Library/Logs/GitHubCopilot/. The most recent file is named github-copilot-for-xcode.log.
~/Library/Logs/GitHubCopilot/
github-copilot-for-xcode.log
You can enable verbose logging to help troubleshoot issues with the GitHub Copilot extension for Xcode.