I am using Zoho Catalyst Event Listeners to listen to events from the Datastore for any data insert and if an event occurs using my event function associated to the event rule to send mail.
Each time during development I had to deploy the function from my local machine to check how my function behaves for those live events, this is an inefficient way to debug and develop.
I need to debug my function for those live events from my local machine for fast and efficient development
I checked the Catalyst CLI event generate CLI command but it can be only used for sample events and not the actual live events which doesn't solve my use case.
I am using Zoho Catalyst Event Listeners to listen to events from the Datastore for any data insert and if an event occurs using my event function associated to the event rule to send mail.
Each time during development I had to deploy the function from my local machine to check how my function behaves for those live events, this is an inefficient way to debug and develop.
I need to debug my function for those live events from my local machine for fast and efficient development
I checked the Catalyst CLI event generate CLI command but it can be only used for sample events and not the actual live events which doesn't solve my use case.
Share Improve this question asked Feb 6 at 6:45 RaghuRaghu 1138 bronze badges1 Answer
Reset to default 1You won't be able to run your event functions for the live events from your local machine. But there is a workaround solution to debug the function for the live events.
You can use the Catalyst Tunnelling option to use reverse proxy in order to log the event function execution from your local machine. You can use a reverse proxy provider such as Ngrok, Localtunnel etc., in order to get a Tunneling URL which you can add it in the console and map it to your event function. Read more->
Once mapped, all the logs from your event function logs will be routed to the tunnelling URL and based on the reverse proxy provider you are using you can route it back to your local machine Catalyst CLI using the functions:shell method. Read more->