> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 收集插件日志

> 如何从 JetBrains、VS Code、Eclipse、Visual Studio 和 NeoVim 收集诊断日志，以排查 Devin Desktop 插件问题。

如果你遇到问题，故障排查的第一步是从 IDE 中获取日志。以下介绍如何获取各大 IDE 的 Devin Desktop 日志：

<div id="jetbrains-ides">
  ## JetBrains IDE
</div>

<Tabs>
  <Tab title="本地">
    Cascade 现已支持直接从 IDE 生成诊断文件，可通过以下两种方式：

    * 在 Cascade 窗口中，点击右上角的 3 个点，然后选择 Download Diagnostics
    * 在 IDE 菜单中，前往 Tools > Windsurf > Download Windsurf Diagnostics

    推荐使用第一种方式，因为它还会包含 Cascade 内嵌浏览器的日志。
    此按钮会自动收集相关日志和参数，并保存为一个文本文件。

    在极少数情况下，你也可以通过 Help > Show Log in Explorer/Finder 获取 IDE 的完整日志 (idea.log) 。
  </Tab>

  <Tab title="Remote">
    要收集 Devin Desktop 的诊断信息，你可以使用以下方式：

    * 在 Cascade 窗口中，点击右上角的 3 个点，然后选择 Download Diagnostics
    * 在 IDE 菜单中，前往 Tools > Windsurf > Download Windsurf Diagnostics

    推荐使用第一种方式，因为它还会包含 Cascade 内匌浏览器的日志。

    此外，如需收集完整的 IDE 日志：

    * 在 IDE 菜单中，前往 Tools > Windsurf > Collect Host and Client Logs
  </Tab>
</Tabs>

<div id="vs-code">
  ## VS Code
</div>

1. 打开 Command Palette (`Ctrl/Cmd + Shift + P`，或前往 View > Command Palette)

2. 输入“Show logs”，然后选择“Developer: Show Logs”选项

3. 点击右上角当前显示为“Extension Host”的下拉菜单，然后选择“Windsurf”

4. 你应该会看到与下图类似的内容：

<Frame style={{ border: 'none', background: 'none' }}>
  <img src="https://mintcdn.com/cognitionai/-PTA3zzo2bR9Qfc8/desktop/assets/extension-diagnostics-log.png?fit=max&auto=format&n=-PTA3zzo2bR9Qfc8&q=85&s=4ebda48aa2805556c46727e263aa582e" width="2042" height="272" data-path="desktop/assets/extension-diagnostics-log.png" />
</Frame>

5. 导出或复制日志

<div id="eclipse">
  ## Eclipse
</div>

在 Eclipse 中，日志文件会写入以下路径：

* **Mac/Linux**: \~/.codeium/codeium.log
* **Windows**: `C:\Users\<username>\.codeium\codeium.log`

<div id="visual-studio">
  ## Visual Studio
</div>

打开 **视图 > 输出**，在下拉菜单中选择 “Windsurf”，然后复制日志。

<div id="neovim">
  ## NeoVim
</div>

在你的 vimrc 中将 `g:codeium_log_file` 设置为某个文件路径，然后重新启动 vim。

随后，logs 就会写入该文件。
