diff --git a/docs/get-started/configuration.md b/docs/get-started/configuration.md index a3842a3b1f..3c8d0a76d8 100644 --- a/docs/get-started/configuration.md +++ b/docs/get-started/configuration.md @@ -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. diff --git a/docs/tools/mcp-server.md b/docs/tools/mcp-server.md index a489f833c2..d1066d5170 100644 --- a/docs/tools/mcp-server.md +++ b/docs/tools/mcp-server.md @@ -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 diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 27a2679e9c..2dea1c7212 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -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. diff --git a/packages/cli/src/config/config.ts b/packages/cli/src/config/config.ts index a339e8ccc5..beccbfa0a9 100755 --- a/packages/cli/src/config/config.ts +++ b/packages/cli/src/config/config.ts @@ -93,7 +93,7 @@ export async function parseArguments(settings: Settings): Promise { .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) =>