Answer: You can debug Gemini CLI by using the `--debug` flag for more detailed output, or pressing F12 in interactive mode to view the debug console. You can also check the CLI logs, often found in a user-specific configuration or cache directory. Status: Confirmed Entry: tool/gemini-cli/troubleshooting/debugging-tips Revision: 1 Digest: sha256:990f7516b5356588 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:19:00Z Last changed: 2026-11-13T03:19:00Z Last verified: 2026-11-20T12:53:53Z Next check: 2026-11-21T12:53:53Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of CLI debug flag | --debug | [1] | 2026-11-20 Interactive debug console key | F12 | [1] | 2026-11-20 CLI logs location | user-specific configuration or cache directory | [1] | 2026-11-20 Core debug environment variable | DEBUG_MODE | [1] | 2026-11-20 Node.js debugging example | node --inspect | [1] | 2026-11-20 Pre-flight check command | npm run preflight | [1] | 2026-11-20 Sources: [1] Google. "Troubleshooting guide". https://geminicli.com/docs/resources/troubleshooting.md Role: primary. Accessed: 2026-11-20T12:53:53Z Quote: "Use the `--debug` flag for more detailed output." (Supports: CLI debug flag) Quote: "In interactive mode, press F12 to view the debug console." (Supports: Interactive debug console key) Quote: "Check the CLI logs, often found in a user-specific configuration or cache directory." (Supports: CLI logs location) Quote: "set the `DEBUG_MODE` environment variable to `true` or `1`." (Supports: Core debug environment variable) Quote: "Use Node.js debugging tools (for example, `node --inspect`)" (Supports: Node.js debugging example) Quote: "Always run `npm run preflight` before committing code." (Supports: Pre-flight check command) Published: 2026-10-16T02:36:07Z Snapshot SHA-256: a8f8608db502854eb7ca61bc0f268acc56bb8c37fb5467178f700ae56b291604 (captured 2026-11-13T03:18:59Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:19:00Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:53:53Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:53:53Z Last attempt: 2026-11-20T12:53:53Z Notes and limitations: Extracted automatically from a single official source (section "Debugging tips"). Related: https://latestn.com/tool/gemini-cli/troubleshooting/exit-codes-meaning What do the exit codes mean in Gemini CLI? https://latestn.com/tool/gemini-cli/troubleshooting/extension-not-loading How do I troubleshoot a Gemini CLI extension that is not loading? https://latestn.com/tool/gemini-cli/troubleshooting/find-or-create-github-issues How do I find existing GitHub issues for Gemini CLI or create a new one? https://latestn.com/tool/gemini-cli/settings/update-extension How do I update a Gemini CLI extension to pull changes from its source? https://latestn.com/tool/gemini-cli/troubleshooting/acp-debugging-telemetry How can I debug Gemini CLI ACP mode and enable telemetry? https://latestn.com/tool/gemini-cli/troubleshooting/debug-hooks How do I debug Gemini CLI hooks that aren't working? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:19:00Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/gemini-cli/troubleshooting/debugging-tips/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/gemini-cli/troubleshooting/debugging-tips POST: https://latestn.com/dispute/tool/gemini-cli/troubleshooting/debugging-tips with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/gemini-cli/troubleshooting/debugging-tips?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How can I debug issues with Gemini CLI? Revision 1, last verified 2026-11-20T12:53:53Z. https://latestn.com/tool/gemini-cli/troubleshooting/debugging-tips (accessed 2026-11-21T09:52:31Z). @misc{LatestN_tool_gemini_cli_troubleshooting_debugging_tips_r1, title = {How can I debug issues with Gemini CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/gemini-cli/troubleshooting/debugging-tips}}, note = {Revision 1; digest sha256:990f7516b5356588; last verified 2026-11-20T12:53:53Z; accessed 2026-11-21T09:52:31Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/gemini-cli/troubleshooting/debugging-tips