From 5841488cfa6ef10a387836e61aced3463f14796d Mon Sep 17 00:00:00 2001 From: Jamie Dubs Date: Wed, 15 Jan 2025 11:37:10 -0500 Subject: [PATCH 1/4] 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` From 9a25335d4060a487b861e9ee2fc0af5748a71cff Mon Sep 17 00:00:00 2001 From: Jamie Dubs Date: Wed, 22 Jan 2025 11:33:19 -0500 Subject: [PATCH 2/4] Simplify JSON for installing dev tools --- docs/tools/debugging.mdx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/tools/debugging.mdx b/docs/tools/debugging.mdx index 63b3472..dc3d7ba 100644 --- a/docs/tools/debugging.mdx +++ b/docs/tools/debugging.mdx @@ -60,13 +60,10 @@ The logs capture: Access Chrome's developer tools inside Claude Desktop to investigate client-side errors: -1. Enable the `allowDevTools` flag in your `developer_settings.json` file: +1. Create a `developer_settings.json` file with `allowDevTools` set to true: ```bash -[ -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 +echo '{"allow_dev_tools": true }' > ~/Library/Application\ Support/Claude/developer_settings.json ``` 2. Open DevTools: `Command-Option-Shift-i` From b4a8f3a890e1f7f8e74eb265ae94eb194cbeaf4e Mon Sep 17 00:00:00 2001 From: Jamie Dubs Date: Wed, 22 Jan 2025 11:34:16 -0500 Subject: [PATCH 3/4] Fix typo --- docs/tools/debugging.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tools/debugging.mdx b/docs/tools/debugging.mdx index dc3d7ba..90fe184 100644 --- a/docs/tools/debugging.mdx +++ b/docs/tools/debugging.mdx @@ -63,7 +63,7 @@ Access Chrome's developer tools inside Claude Desktop to investigate client-side 1. Create a `developer_settings.json` file with `allowDevTools` set to true: ```bash -echo '{"allow_dev_tools": true }' > ~/Library/Application\ Support/Claude/developer_settings.json +echo '{"allowDevTools": true }' > ~/Library/Application\ Support/Claude/developer_settings.json ``` 2. Open DevTools: `Command-Option-Shift-i` From 02016f27bfe87b9057282409545b6f5092618784 Mon Sep 17 00:00:00 2001 From: Jamie Dubs Date: Wed, 22 Jan 2025 11:35:15 -0500 Subject: [PATCH 4/4] Remove stray space too While I'm paying attention. Squash merges ftw --- docs/tools/debugging.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tools/debugging.mdx b/docs/tools/debugging.mdx index 90fe184..72065f5 100644 --- a/docs/tools/debugging.mdx +++ b/docs/tools/debugging.mdx @@ -63,7 +63,7 @@ Access Chrome's developer tools inside Claude Desktop to investigate client-side 1. Create a `developer_settings.json` file with `allowDevTools` set to true: ```bash -echo '{"allowDevTools": true }' > ~/Library/Application\ Support/Claude/developer_settings.json +echo '{"allowDevTools": true}' > ~/Library/Application\ Support/Claude/developer_settings.json ``` 2. Open DevTools: `Command-Option-Shift-i`