From 5841488cfa6ef10a387836e61aced3463f14796d Mon Sep 17 00:00:00 2001 From: Jamie Dubs Date: Wed, 15 Jan 2025 11:37:10 -0500 Subject: [PATCH] Create developer_settings.json file if necessary Expands the one-liner on the Debugging page. That file does not seem to be present on a stock Claude Desktop installation. --- docs/tools/debugging.mdx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/tools/debugging.mdx b/docs/tools/debugging.mdx index 8340ec9..63b3472 100644 --- a/docs/tools/debugging.mdx +++ b/docs/tools/debugging.mdx @@ -60,10 +60,13 @@ The logs capture: Access Chrome's developer tools inside Claude Desktop to investigate client-side errors: -1. Enable DevTools: +1. Enable the `allowDevTools` flag in your `developer_settings.json` file: + ```bash -jq '.allowDevTools = true' ~/Library/Application\ Support/Claude/developer_settings.json > tmp.json \ - && mv tmp.json ~/Library/Application\ Support/Claude/developer_settings.json +[ -s ~/Library/Application\ Support/Claude/developer_settings.json ] \ + && jq '.allowDevTools = true' ~/Library/Application\ Support/Claude/developer_settings.json > tmp.json \ + || echo '{"allowDevTools": true}' > tmp.json \ + && mv tmp.json ~/Library/Application\ Support/Claude/developer_settings.json ``` 2. Open DevTools: `Command-Option-Shift-i`