My python code freezes from time to time. I'm not sure what part runs into the error. My suspect would be a database connection or some external library.
What would be the easiest way to find the function call that causes the freeze?
I tried to attach to the process, but unfortunately, I couldn't pause/debug the main thread.
Right now I would just add logging messages to locate the error. But was wondering if there might be a better way.
Thanks a lot!