Back

How to debug function method in vscode

  • 0
  • Functions
joser
19 Oct, 2023, 01:34

In the process of developing Function with VSCode, how can we test whether the function logic of this method is correct in VSCode? Can it only be tested by Appwrite after deployment?

TL;DR
If you want to debug a function method in VSCode, it is recommended to deploy it to an appwrite instance and test it there incrementally during development. Testing the function logic in VSCode alone may not guarantee accurate results. Deploying and testing in Appwrite helps ensure that the function works correctly within the environment it will ultimately be used.
Drake
19 Oct, 2023, 01:53

i highly recommend deploying to an appwrite instance and testing it in there incrementally as you develop. it would be difficult to troubleshoot if your function worked outside of Appwrite and then failed inside appwrite

joser
19 Oct, 2023, 05:19

In this case, it will slow down the development progress very much. From my point of view

Drake
19 Oct, 2023, 18:34

i understand the frustration and we have plans to improve this.

you can use open runtimes to develop locally, but, again, i don't recommend this because it will be difficult to troubleshoot if it doesn't work when you finally deploy in appwrite

Drake
19 Oct, 2023, 18:35

Here are some instructions if you want to run open runtimes locally: https://github.com/open-runtimes/open-runtimes/blob/main/runtimes/dart-3.1/README.md

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more