noob saibot
noob saibot12mo ago

Debugging in local dev

Hello community. How do I test/debug my http actions as I'm developing locally? When I run npx convex dev, are these http actions exposed at http://localhost:port?
4 Replies
erquhart
erquhart12mo ago
Hey there! In local dev your backend is still running in the cloud. The general flow for debugging is to log what you need to from your actions and view the logs either in the dashboard, or you can use npx convex dev --tail-logs to get logs in your cli.
Abhishek
Abhishek12mo ago
Its same as how you test normal query and mutation
erquhart
erquhart12mo ago
I totally missed that they mentioned http actions - from the docs:
HTTP actions are exposed at https://<your deployment name>.convex.site (e.g. https://happy-animal-123.convex.site).
Your dev and production deployments each have their own names, you can get the deployment name from the settings panel in the dashboard. More here: https://docs.convex.dev/functions/http-actions
HTTP Actions | Convex Developer Hub
HTTP actions allow you to build an HTTP API right in Convex!
noob saibot
noob saibotOP12mo ago
Ok, thanks for the reply, I'll try to use that method

Did you find this page helpful?