Much better is a well thought of error handling. This shows exactly when and where something went wrong. If your error handler supports it, even context information like all the variables of the current stack is reported.
Add managable background jobs to the recipe which you can restart after fixing the code...
This helps in 99.99% of all cases.