Skip to content

Commit 374be37

Browse files
richardkmichaelOrKoN
authored andcommitted
Add log file debugging instructions
1 parent 1ab5894 commit 374be37

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

docs/troubleshooting.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,33 @@
99
- Find a specific error in the output of the `chrome-devtools-mcp` server.
1010
Usually, if your client is an IDE, logs would be in the Output pane.
1111

12+
## Debugging
13+
14+
Start the MCP server with debugging enabled and a log file:
15+
16+
- `DEBUG=mcp:log 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": "mcp:log"
33+
}
34+
}
35+
}
36+
}
37+
```
38+
1239
## Specific problems
1340

1441
### `Error [ERR_MODULE_NOT_FOUND]: Cannot find module ...`

0 commit comments

Comments
 (0)