What is the best way to debug a Freshworks custom app when the app works locally but fails after installation?

I’m working on a Freshworks custom app that behaves normally when I test it locally, but I’m running into problems after installing it in the actual Freshworks environment.

The confusing part is that the same code and basic functionality work during local testing, so I’m trying to figure out what usually causes this difference. I’m wondering if it could be related to app configuration, permissions, API requests, installation settings, environment variables or differences in how the app lifecycle works after installation.

For anyone who has dealt with this before, what do you normally check first when a Freshworks app works locally but fails after installation? Are there any debugging tools or logs that are particularly useful for finding the problem?

One additional question: Have you found any reliable resources or tools that help troubleshoot these kinds of development issues? You can also check out this website for other useful online tools.