Skip to content

Commit 25f9bd3

Browse files
cidersageCopilot
andauthored
Add VSCode debug logging instructions for issue 19638 (#58383)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 2627c41 commit 25f9bd3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

content/copilot/how-tos/troubleshoot-copilot/view-logs.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,22 @@ Alternatively, you can open the log folder for {% data variables.product.prodnam
118118
* Use: <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd>
119119
1. Type "Logs", and then select **Developer: Open Extension Logs Folder** from the list.
120120

121+
## Enabling debug mode
122+
123+
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.
124+
125+
1. Open the {% data variables.product.prodname_vscode_command_palette_shortname %}
126+
* For Mac:
127+
* Use: <kbd>Shift</kbd>+<kbd>Command</kbd>+<kbd>P</kbd>
128+
* For Windows or Linux:
129+
* Use: <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd>
130+
1. Type "Developer", then select **Developer: Set Log Level**.
131+
1. Type "{% data variables.product.github %}", then select the {% data variables.product.github %} extension you're troubleshooting:
132+
* **{% data variables.copilot.copilot_chat %}** for the {% data variables.copilot.copilot_chat_short %} extension.
133+
* **{% data variables.product.github %}** for the {% data variables.copilot.copilot_extension %}.
134+
1. Select **Trace** from the dropdown list.
135+
1. When you have the information you need, disable debug mode by repeating steps 1 through 4 and returning the logging level to **Info**.
136+
121137
## Viewing network connectivity diagnostics logs
122138

123139
If you encounter problems connecting to {% data variables.product.prodname_copilot %} due to network restrictions, firewalls, or your proxy setup, use the following troubleshooting steps.

0 commit comments

Comments
 (0)