mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
docs: clarify F12 to open debug console (#16570)
This commit is contained in:
@@ -1323,7 +1323,8 @@ for that specific session.
|
|||||||
- **`--sandbox`** (**`-s`**):
|
- **`--sandbox`** (**`-s`**):
|
||||||
- Enables sandbox mode for this session.
|
- Enables sandbox mode for this session.
|
||||||
- **`--debug`** (**`-d`**):
|
- **`--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`**):
|
- **`--help`** (or **`-h`**):
|
||||||
- Displays help information about command-line arguments.
|
- Displays help information about command-line arguments.
|
||||||
|
|||||||
@@ -722,7 +722,8 @@ The MCP integration tracks several states:
|
|||||||
|
|
||||||
### Debugging tips
|
### 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
|
2. **Check stderr:** MCP server stderr is captured and logged (INFO messages
|
||||||
filtered)
|
filtered)
|
||||||
3. **Test isolation:** Test your MCP server independently before integrating
|
3. **Test isolation:** Test your MCP server independently before integrating
|
||||||
|
|||||||
@@ -130,7 +130,8 @@ This is especially useful for scripting and automation.
|
|||||||
## Debugging tips
|
## Debugging tips
|
||||||
|
|
||||||
- **CLI debugging:**
|
- **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
|
- Check the CLI logs, often found in a user-specific configuration or cache
|
||||||
directory.
|
directory.
|
||||||
|
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ export async function parseArguments(settings: Settings): Promise<CliArgs> {
|
|||||||
.option('debug', {
|
.option('debug', {
|
||||||
alias: 'd',
|
alias: 'd',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
description: 'Run in debug mode?',
|
description: 'Run in debug mode (open debug console with F12)',
|
||||||
default: false,
|
default: false,
|
||||||
})
|
})
|
||||||
.command('$0 [query..]', 'Launch Gemini CLI', (yargsInstance) =>
|
.command('$0 [query..]', 'Launch Gemini CLI', (yargsInstance) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user