Skip to content

Commit a8aae66

Browse files
docs: Add debug instructions (#670)
Co-authored-by: Alex Rudenko <OrKoN@users.noreply.github.com>
1 parent f59b4a2 commit a8aae66

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

docs/troubleshooting.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,34 @@
77
- When configuring your MCP client, try using the `--yes` argument to `npx` to
88
auto-accept installation prompt.
99
- Find a specific error in the output of the `chrome-devtools-mcp` server.
10-
Usually, if you client is an IDE, logs would be in the Output pane.
10+
Usually, if your client is an IDE, logs would be in the Output pane.
11+
12+
## Debugging
13+
14+
Start the MCP server with debugging enabled and a log file:
15+
16+
- `DEBUG=* npx chrome-devtools-mcp@latest --log-file=/path/to/chrome-devtools-mcp.log`
17+
18+
Using `.mcp.json` to debug while using a client:
19+
20+
```json
21+
{
22+
"mcpServers": {
23+
"chrome-devtools": {
24+
"type": "stdio",
25+
"command": "npx",
26+
"args": [
27+
"chrome-devtools-mcp@latest",
28+
"--log-file",
29+
"/path/to/chrome-devtools-mcp.log"
30+
],
31+
"env": {
32+
"DEBUG": "*"
33+
}
34+
}
35+
}
36+
}
37+
```
1138

1239
## Specific problems
1340

0 commit comments

Comments
 (0)