***

title: enable_debug_routes
slug: /reference/python/agents/agent-base/enable-debug-routes
description: Enable debug and testing routes on the agent's HTTP server.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

[ref-agentbase]: /docs/server-sdks/reference/python/agents/agent-base

Enable debug routes on the agent's FastAPI server for development and testing.
Debug routes are registered automatically during route setup; this method exists
as an explicit opt-in for backward compatibility.

## **Parameters**

None.

## **Returns**

[`AgentBase`][ref-agentbase] -- Returns self for method chaining.

## **Example**

```python {5}
from signalwire import AgentBase

agent = AgentBase(name="dev-agent", route="/dev")
agent.set_prompt_text("You are a helpful assistant.")
agent.enable_debug_routes()
agent.serve()
```