docs: clarify F12 to open debug console (#16570)

This commit is contained in:
Jack Wotherspoon
2026-01-14 08:48:52 -05:00
committed by GitHub
parent a1cbe85da3
commit c04af6c3e9
4 changed files with 7 additions and 4 deletions

View File

@@ -1323,7 +1323,8 @@ for that specific session.
- **`--sandbox`** (**`-s`**):
- Enables sandbox mode for this session.
- **`--debug`** (**`-d`**):
- Enables debug mode for this session, providing more verbose output.
- Enables debug mode for this session, providing more verbose output. Open the
debug console with F12 to see the additional logging.
- **`--help`** (or **`-h`**):
- Displays help information about command-line arguments.

View File

@@ -722,7 +722,8 @@ The MCP integration tracks several states:
### Debugging tips
1. **Enable debug mode:** Run the CLI with `--debug` for verbose output
1. **Enable debug mode:** Run the CLI with `--debug` for verbose output (use F12
to open debug console in interactive mode)
2. **Check stderr:** MCP server stderr is captured and logged (INFO messages
filtered)
3. **Test isolation:** Test your MCP server independently before integrating

View File

@@ -130,7 +130,8 @@ This is especially useful for scripting and automation.
## Debugging tips
- **CLI debugging:**
- Use the `--debug` flag for more detailed output.
- Use the `--debug` flag for more detailed output. In interactive mode, press
F12 to view the debug console.
- Check the CLI logs, often found in a user-specific configuration or cache
directory.

View File

@@ -93,7 +93,7 @@ export async function parseArguments(settings: Settings): Promise<CliArgs> {
.option('debug', {
alias: 'd',
type: 'boolean',
description: 'Run in debug mode?',
description: 'Run in debug mode (open debug console with F12)',
default: false,
})
.command('$0 [query..]', 'Launch Gemini CLI', (yargsInstance) =>