Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

222 pages for debug.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

Debug your configuration Claude Code CLI · title debug-your-config Debugging Model Context Protocol · title docs/2024-11-05/tools/debugging Debugging Model Context Protocol · title docs/2025-03-26/tools/debugging Debugging Model Context Protocol · title docs/2025-06-18/tools/debugging Debugging Model Context Protocol · title docs/2025-11-25/tools/debugging Debugging Model Context Protocol · title docs/2026-07-28/tools/debugging Debugging Model Context Protocol · title docs/draft/tools/debugging customer-support-chat Claude Developer Platform · in the page about-claude/use-case-guides/customer-support-chat …arting with the "Greeting and general guidance" task. This also makes debugging your prompt easier as you can more quickly adjust individual parts of the overall prompt. ```python STATIC_GREETINGS_AN… PDF Processing Claude Developer Platform · in the page agents-and-tools/agent-skills/best-practices …Claude can iterate on the plan without touching originals. * **Clear debugging:** Error messages point to specific problems. **When to use:** Batch operations, destructive changes, complex validatio… claude-api-skill Claude Developer Platform · in the page agents-and-tools/agent-skills/claude-api-skill …ic-ai/sdk` for TypeScript/JavaScript) * You ask Claude to help build, debug, or optimize something with the Claude API, an Anthropic SDK, or Managed Agents * You add, modify, or tune a Claude feature… reference Claude Developer Platform · in the page agents-and-tools/mcp-tunnels/reference …| | `log_level` | Logging verbosity: `debug`, `info`, `warn`, or `error`.… bash-tool Claude Developer Platform · in the page agents-and-tools/tool-use/bash-tool …d-tools/tool-use/text-editor-tool"> View and modify text files to debug, fix, and improve code. </Card> <Card title="Tool use with Claude" icon="tool" href="https://platform.claude.com/docs/e… code-execution-tool Claude Developer Platform · in the page agents-and-tools/tool-use/code-execution-tool …file_type": "text", "content": "{\n \"setting\": \"value\",\n \"debug\": true\n}", "num_lines": 4, "start_line": 1, "total_lines": 4 } } ``` **Create file:** ```text Output wrap… computer-use-tool Claude Developer Platform · in the page agents-and-tools/tool-use/computer-use-tool …</CodeGroup> </Accordion> <Accordion title="Log actions for debugging"> Keep a log of all actions for troubleshooting: <CodeGroup exclude="shell"> ```python Python impor… fine-grained-tool-streaming Claude Developer Platform · in the page agents-and-tools/tool-use/fine-grained-tool-streaming …that you received invalid JSON, and preserves the original input for debugging: ```json { "INVALID_JSON": "<the unparseable input you received>" } ``` Return the wrapper, serialized to a string,… overview Claude Developer Platform · in the page agents-and-tools/tool-use/overview …d-tools/tool-use/text-editor-tool"> View and modify text files to debug, fix, and improve code. </Card> <Card title="Computer use tool" icon="computer" href="https://platform.claude.com/docs/… Process results programmatically Claude Developer Platform · in the page agents-and-tools/tool-use/programmatic-tool-calling …vide clear output format documentation in your tool description. ### Debugging tips 1. **Log all tool calls and results** to track the flow. 2. **Check the `caller` field** to confirm a programmatic… text-editor-tool Claude Developer Platform · in the page agents-and-tools/tool-use/text-editor-tool …ic-schema text editor tool to view and modify text files, helping you debug, fix, and improve your code or other text documents. This allows Claude to directly interact with your files, providing hand… Log at info level Claude Developer Platform · in the page agents-and-tools/tool-use/tool-runner …or a `context_management` compaction edit on a runner, not both. ### Debugging tool execution When a tool throws an exception, the tool runner catches it and returns the error to Claude as a tool re… tool-search-tool Claude Developer Platform · in the page agents-and-tools/tool-use/tool-search-tool …l's name, description, argument names, or argument descriptions. **Debugging steps:** 1. Check tool name, description, argument names, and argument descriptions. Claude searches all of these fie… errors Claude Developer Platform · in the page api/errors …e response also includes a `request_id` field for easier tracking and debugging. For example: ```text JSON wrap { "type": "error", "error": { "type": "not_found_error", "message": "The re… claude-in-microsoft-foundry Claude Developer Platform · in the page build-with-claude/claude-in-microsoft-foundry …Ds Foundry includes request identifiers in HTTP response headers for debugging and tracing. When contacting support, provide both the `request-id` and `apim-request-id` (Azure API Management) values… claude-platform-on-aws Claude Developer Platform · in the page build-with-claude/claude-platform-on-aws …authentication). export ANTHROPIC_API_KEY="YOUR_AWS_API_KEY" # --debug prints the HTTP response, including the X-Amzn-Requestid and # Request-Id headers, to stderr ant --debug messages create… prompting-claude-fable-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-fable-5 …al analysis, spreadsheets, slides, and documents. * **Code review and debugging.** Bug-finding recall (outside the cybersecurity domains the safety classifiers cover) is noticeably higher than Claude… task-budgets Claude Developer Platform · in the page build-with-claude/task-budgets …ls or premature stops after setting a budget, raise the budget before debugging other parameters. Size budgets against your actual task-length distribution rather than a fixed default; see [Choosing a… thinking-steering-and-cost Claude Developer Platform · in the page build-with-claude/thinking-steering-and-cost …e with no thinking block at all; a multistep math problem or a tricky debugging task triggers deeper reasoning. This determination occurs for each request. The same conversation can contain turns wit… using Claude Developer Platform · in the page cli-sdks-libraries/cli/using …mand structure, output formats, GJSON transforms, request bodies, and debugging for the ant CLI. --- This page covers the `ant` CLI's input and output mechanics that apply across every endpoint. To i… openai-sdk Claude Developer Platform · in the page cli-sdks-libraries/libraries/openai-sdk …sages are not equivalent. Only use the error messages for logging and debugging. ### Header compatibility Although the OpenAI SDK automatically manages headers, here is the complete list of headers… middleware Claude Developer Platform · in the page cli-sdks-libraries/middleware …nc (request, next, ctx) => { // Before the request ctx.logger.debug("->", request.method, request.url); // Forward the request to the rest of the chain const response = await next(req… csharp Claude Developer Platform · in the page cli-sdks-libraries/sdks/csharp …m); } ``` ### Logging <Warning> All log messages are intended for debugging only. The format and content of log messages may change between releases. </Warning> Enable debug logging by setting an… go Claude Developer Platform · in the page cli-sdks-libraries/sdks/go …string]string{"my": "object"}), ) ``` The request option `option.WithDebugLog(nil)` might be helpful while debugging. See the [full list of request options](https://pkg.go.dev/github.com/anthropics/… java Claude Developer Platform · in the page cli-sdks-libraries/sdks/java …g requests and report them back to Anthropic. For more information on debugging requests, see [Request ID](https://platform.claude.com/docs/en/api/errors#request-id). ## Retries The SDK automaticall… For Amazon Bedrock support Claude Developer Platform · in the page cli-sdks-libraries/sdks/python …PIConnectionError` | ## Request IDs > For more information on debugging requests, see [Request ID](https://platform.claude.com/docs/en/api/errors#request-id). All object responses in the SDK… typescript Claude Developer Platform · in the page cli-sdks-libraries/sdks/typescript …PIConnectionError` | ## Request IDs > For more information on debugging requests, see [Request ID](https://platform.claude.com/docs/en/api/errors#request-id). All object responses in the SDK… opentelemetry Claude Developer Platform · in the page manage-claude/opentelemetry …se traces in the observability platform you already have. Use them to debug failed or slow requests, track token spend and latency, and build evals from real traffic. You can also see each request ins… wif-reference Claude Developer Platform · in the page manage-claude/wif-reference …is to mint a fresh assertion for each exchange. If you still need to debug from the JWT itself, work through these checks in order: <Steps> <Step title="Decode the JWT"> Decode the assertion y… workload-identity-federation Claude Developer Platform · in the page manage-claude/workload-identity-federation …u. The cURL tab shows the underlying HTTP exchange for shell scripts, debugging, or languages without SDK support. ### Construct the SDK client You can construct the client with explicit credentials… workspaces Claude Developer Platform · in the page manage-claude/workspaces …user", "content": "Hello, Claude"}] }' ``` ```bash CLI # --debug prints the HTTP response, including the Anthropic-Workspace-Id # header, to stderr ant --debug messages create \ --m… dreams Claude Developer Platform · in the page managed-agents/dreams …"instructions": "Focus on coding-style preferences; ignore one-off debugging notes." }' ``` ```bash CLI ant beta:dreams create <<YAML inputs: - type: memory_store memory_stor… session-observability Claude Developer Platform · in the page managed-agents/session-observability …ession in the Claude Console, read its token usage and list cost, and debug unexpected agent behavior. featureMetadata: topic: title: Managed Agents url: https://platform.claude.com/docs/en/… whats-new-fable-5-1 Claude Developer Platform · in the page models/fable-5-1/whats-new-fable-5-1 …ions**, including multifile features, large refactors and migrations, debugging, and code review across sessions that run for hours * **Knowledge work with documents, spreadsheets, and slides**, takin… Set up Claude Code for your organization Claude Code CLI · in the page admin-setup …s.md): patterns for everyday tasks like code review, refactoring, and debugging * [Claude Code 101](https://academy.claude.com/courses/claude-code-101) and [Claude Code in Action](https://academy.clau… Escalate hard decisions with the advisor tool Claude Code CLI · in the page advisor …lan quality determines the outcome. Examples include large refactors, debugging sessions where an error keeps recurring, and tasks you want independently checked before Claude declares them done. It… How the agent loop works Claude Code CLI · in the page agent-sdk/agent-loop …e. This page explains what happens inside that loop so you can build, debug, and optimize your agents effectively. ## The loop at a glance Every agent session follows the same cycle: ![Diagram of t… Intercept and control agent behavior with hooks Claude Code CLI · in the page agent-sdk/hooks …authorized file access * **Log and audit** tool calls for compliance, debugging, or analytics * **Transform inputs and outputs** to sanitize data, inject credentials, or redirect file paths * **Requir… Connect to external tools with MCP Claude Code CLI · in the page agent-sdk/mcp …github/github-mcp-server) to list recent issues. The example includes debug logging to verify the MCP connection and tool calls. Before running, create a [GitHub personal access token](https://github… Agent SDK reference - Python Claude Code CLI · in the page agent-sdk/python …ield(default_factory=dict) max_buffer_size: int | None = None debug_stderr: Any = sys.stderr # Deprecated stderr: Callable[[str], None] | None = None can_use_tool: CanUseTool | None =… Quickstart Claude Code CLI · in the page agent-sdk/quickstart …cluding system initialization and internal state, which is useful for debugging but noisy otherwise. > [!NOTE] > > This example uses streaming to show progress in real-time. If you don't need live ou… Extend agents with skills Claude Code CLI · in the page agent-sdk/skills …g For general skills troubleshooting, such as YAML syntax errors and debugging, see the [Claude Code skills troubleshooting section](/docs/en/skills.md#troubleshooting). ## Next steps The [Claude C… Streaming Input Claude Code CLI · in the page agent-sdk/streaming-vs-single-mode …error text. > > In the Python SDK, a generator exception is logged at debug level and the session stalls without raising, so if a streaming session hangs with no output, enable debug logging and check…
Feedback