Skip to content

Chrome DevTools for coding agents

fix: expose --debug-file argument (#164)

Alex Rudenko22ec7ee45cc0
diff --git a/README.md b/README.md
index 22667040..09b6cd40 100644
--- a/README.md
+++ b/README.md
@@ -201,6 +201,10 @@ The Chrome DevTools MCP server supports the following configuration option:
- **Type:** string
- **Choices:** `stable`, `canary`, `beta`, `dev`
+- **`--logFile`**
+ Path to a file to write debug logs to. Set the env variable `DEBUG` to `*` to enable verbose logs. Useful for submitting bug reports.
+ - **Type:** string
+
<!-- END AUTO GENERATED OPTIONS -->
Pass them via the `args` property in the JSON configuration. For example:
diff --git a/src/cli.ts b/src/cli.ts
index 559c39f0..df07bfad 100644
--- a/src/cli.ts
+++ b/src/cli.ts
@@ -51,8 +51,8 @@ export const cliOptions = {
},
logFile: {
type: 'string' as const,
- describe: 'Save the logs to file.',
- hidden: true,
+ describe:
+ 'Path to a file to write debug logs to. Set the env variable `DEBUG` to `*` to enable verbose logs. Useful for submitting bug reports.',
},
};