Back

Appwrite code debugging

  • 0
  • General
7777Chaitanya
26 Mar, 2024, 09:44

Hello Friends. I'm currently diving into the Appwrite codebase and I have a question regarding debugging PHP code.

Could you please guide me on the best and most effective methods for debugging PHP code within the Appwrite framework? FYI, I am trying to echo something and couldn't see it in the container logs.

Additionally, I'm curious about the workflow for reflecting code changes. Do I need to restart the Appwrite Docker containers each time I make changes to my code, or does the server automatically reload for every code alteration when using VSCode?

TL;DR
- Developer is seeking guidance on debugging PHP code within the Appwrite framework. - They are specifically having trouble using `echo` and not seeing the output in container logs. - Developer also wants to know if they need to restart Appwrite Docker containers manually after making code changes, or if the server reloads automatically when using VSCode. **Solution:** - To effectively debug PHP code in Appwrite, consider using tools like xdebug or `var_dump()` for better visibility. - Check container logs outside VSCode to see `echo` output. - When making code alterations, the server does not automatically reload. You need to manually restart
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