The Freshworks Developer Kit (FDK) can be run in debug mode to aid app troubleshooting. Since the FDK simulates the production environment, it is often easier to catch bugs by analyzing the output of the debug mode.
if it is Windows - Powershell
$env:NODE_DEBUG='fdk'; fdk run`
If it is Windows - Command Prompt
set NODE_DEBUG=fdk
fdk run
If it is Mac/Ubuntu/Linux/WSL - Terminal
NODE_DEBUG=fdk fdk run
The debug logs are also automatically saved in the app directory at /logs
to troubleshoot the app. Ensure the version of your Freshworks CLI (FDK) is 6.12.0 or greater for the availability of an automatic debug log storage feature.