Jake_Williams:

I found this link: https://wiki.python.org/moin/DebuggingWithGdb that makes it look like I can just install gdb and run my training with that, and when it fails I’ll be able to see the C stack trace. Is that what you’re referring to?


If you run it from the command line on your machine as python foo.py --arg1 bar then you can do the following:
gdb python to get into gdb. Then run foo.py --arg1 bar inside the gdb cli.
This will just run your program as before (the start might be a bit slower but that’s it).
Once the program hangs, you can hit ctrl+C to get back to gdb cli.
There you can use bt to get the backtrace.
And also info threads to get info about the different threads and where they are.
Sharing both here should give us much more info!