packages/kilo-docs/pages/getting-started/troubleshooting/troubleshooting-extension.md
Providing console logs helps us pinpoint exactly what's going wrong with your installation, network, or MCP setup. This guide walks you through capturing those logs in your IDE.
{% tabs %} {% tab label="VS Code" %}
Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac)Developer: Open Webview Developer Tools and select it{% /tab %} {% tab label="JetBrains" %}
Cmd+Shift+A / Ctrl+Shift+A)Registry and open itjcef and configure these settings:
ide.browser.jcef.debug.port → set to 9222ide.browser.jcef.contextMenu.devTools.enabled → check the boxhttp://localhost:9222/json to see the list of inspectable targets"title": "Kilo Code" and open the devtoolsFrontendUrl link{% /tab %} {% /tabs %}
Once you have the Developer Tools console open:
If every prompt fails with SQLiteError: database disk image is malformed, Kilo Code's local SQLite database may be corrupted. This database stores local Kilo state such as sessions and history.
The database location depends on where Kilo Code is running:
| Environment | Database path |
|---|---|
| Windows | %LOCALAPPDATA%\kilo\kilo.db |
| macOS | ~/Library/Application Support/kilo/kilo.db |
| Linux | ~/.local/share/kilo/kilo.db |
| VS Code Remote SSH | ~/.local/share/kilo/kilo.db on the remote machine |
{% callout type="warning" %} When using VS Code Remote SSH, check the remote Linux machine, not your local Windows or macOS computer. {% /callout %}
Close VS Code or stop the Kilo backend first. On Linux or Remote SSH, run:
pkill -f "kilo serve"
mkdir -p ~/.local/share/kilo
mv ~/.local/share/kilo/kilo.db ~/.local/share/kilo/kilo.db.bak
mv ~/.local/share/kilo/kilo.db-wal ~/.local/share/kilo/kilo.db-wal.bak 2>/dev/null
mv ~/.local/share/kilo/kilo.db-shm ~/.local/share/kilo/kilo.db-shm.bak 2>/dev/null
Then reload VS Code or reconnect Remote SSH. Kilo Code recreates the database the next time it starts.
On Windows or macOS, rename the database file and any kilo.db-wal or kilo.db-shm files in the same folder, then restart the IDE.
{% callout type="warning" %}
Renaming this database resets local Kilo Code sessions and history for that machine. Keep the .bak files if you need to share them with support or attempt recovery later.
{% /callout %}
If resetting the database does not fix the issue, you can fully reset Kilo Code's local data. This also removes local configuration and cache files, so use it only after trying the database reset above.
On Linux or VS Code Remote SSH, run this on the machine where Kilo Code is running:
pkill -f "kilo serve"
mv ~/.local/share/kilo ~/.local/share/kilo.bak 2>/dev/null
mv ~/.config/kilo ~/.config/kilo.bak 2>/dev/null
mv ~/.cache/kilo ~/.cache/kilo.bak 2>/dev/null
Then reload VS Code or reconnect Remote SSH. Kilo Code recreates these directories the next time it starts.
{% callout type="warning" %} This resets local sessions, history, settings, and cached data. Prefer renaming the directories instead of deleting them so you can recover files. Remove secrets such as API keys or tokens before sharing any backup with support. {% /callout %}
If you're unable to resolve the issue, please inspect the console logs, remove any secrets, and send the logs to [email protected] along with the following: