From 018088c1cf1383eac36dbc4567cacd14b5fc1759 Mon Sep 17 00:00:00 2001 From: Enrique Gonzalez Date: Mon, 9 Sep 2024 15:15:14 -0700 Subject: [PATCH 1/2] Remove cody.enable step when getting verbose logs --- docs/cody/troubleshooting.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/cody/troubleshooting.mdx b/docs/cody/troubleshooting.mdx index 83cea36d8..70e69e103 100644 --- a/docs/cody/troubleshooting.mdx +++ b/docs/cody/troubleshooting.mdx @@ -15,9 +15,9 @@ If you're experiencing issues with Cody not responding in chat, follow these ste ### Access Cody logs -VS Code logs can be accessed via the **Outputs** view. To access logs, you need to enable Cody logs in verbose mode. To do so: +VS Code logs can be accessed via the **Outputs** view. You will need to set Cody to verbose mode to ensure important information to debug is on the logs. To do so: -- Go to the Cody Extension Settings and enable: `Cody › Debug: Enable` and `Cody › Debug: Verbose` +- Go to the Cody Extension Settings and enable: `Cody › Debug: Verbose` - Restart or reload your VS Code editor - You can now see the logs in the Outputs view - Open the view via the menu bar: `View > Output` From 69625d8ea1bf1a7603cc4c8c2b3a321fbd0e0f48 Mon Sep 17 00:00:00 2001 From: Enrique Gonzalez Date: Mon, 9 Sep 2024 15:21:54 -0700 Subject: [PATCH 2/2] add export logs button callout on troubleshooting --- docs/cody/troubleshooting.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/cody/troubleshooting.mdx b/docs/cody/troubleshooting.mdx index 70e69e103..206b4776f 100644 --- a/docs/cody/troubleshooting.mdx +++ b/docs/cody/troubleshooting.mdx @@ -22,6 +22,7 @@ VS Code logs can be accessed via the **Outputs** view. You will need to set Cody - You can now see the logs in the Outputs view - Open the view via the menu bar: `View > Output` - Select **Cody by Sourcegraph** from the dropdown list +- You can export the logs by using the command palette (Cmd+Shift+P on Mac, Ctrl+Shift+P on Windows/Linux) and searching for the "Cody Debug: Export Logs" command ![View Cody's autocomplete logs from the Output View in VS Code](https://storage.googleapis.com/sourcegraph-assets/Docs/autocomplete-logs.png)