# Debug Stateful Smart Contract

To debug a stateful smart contract :-

* Right click on the editor and select "Algorand > Stateful Contract > Call App"
* Enter transaction details and click debug
* Enter debugger context info (Dry Run Context) like source teal file, accounts etc.&#x20;
* IDE automatically starts tealdbg with the required data and then opens Chrome browser for debugging (If automatic browser opening option is not disabled)

{% embed url="<https://youtu.be/YxF1krhD3AQ>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://algodea-docs.bloxbean.com/debugger-support/debug-stateful-smart-contract.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
