I have a nodejs app running on a number of Raspberry Pis that is interacting with Firebase. I use Forever to keep the app running.
For some of the Pis it sometimes happens that the app is continuously restarting until I reboot the Pi.
What would be a good strategy for debugging such a problem?