We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ab5894 commit 374be37Copy full SHA for 374be37
1 file changed
docs/troubleshooting.md
@@ -9,6 +9,33 @@
9
- Find a specific error in the output of the `chrome-devtools-mcp` server.
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=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
39
## Specific problems
40
41
### `Error [ERR_MODULE_NOT_FOUND]: Cannot find module ...`
0 commit comments