Quantcast
Viewing latest article 7
Browse Latest Browse All 1232

Python • Re: Raspberry Pi Scripts stops running after a while.

Even if no one has any idea, how could i set up error catching to see why it does or some way of if it stops, it can restart it's self.
Shell scripts or Python scripts or what?
Crude debugging is just to add some trace at key points in the script. That is some kind of "print" statement into a file.
Make sure the output is actually written to the disk, either with a "flush" and/or opening and closing the file each time (write a little trace() function). Make sure the trace does not fill up the disk, or write to a separate USB drive, or send it to another machine.

Statistics: Posted by jahboater — Wed Apr 09, 2025 9:37 am



Viewing latest article 7
Browse Latest Browse All 1232

Trending Articles