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

# enableDebugRoutes

> Enable debug and testing routes on the agent's HTTP server.

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

Enable debug routes on the agent's Hono server for development and testing. In
the TypeScript SDK, debug routes (health, ready, debug\_events) are automatically
registered in `getApp()`; this method exists as a no-op stub for API parity with
the Python SDK.

## **Parameters**

None.

## **Returns**

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

## **Example**

```typescript {5}
import { AgentBase } from '@signalwire/sdk';

const agent = new AgentBase({ name: 'dev-agent', route: '/dev' });
agent.setPromptText('You are a helpful assistant.');
agent.enableDebugRoutes();
await agent.serve();
```