# Troubleshooting

**How to find bug(s) in the Wasm code when it is called from SQL?**

Debug the code outside of the database. You may use a test harness, or single-step through the code in a debugger.

***

Modified at: March 25, 2025

Source: [/cloud/reference/code-engine-powered-by-wasm/troubleshooting/](https://docs.singlestore.com/cloud/reference/code-engine-powered-by-wasm/troubleshooting/)

(An index of the documentation is available at /llms.txt)
