What is the best way to debug a Python program if when i run it, it totally hangs up the terminal console. Control-c or control-d has NO effect, so it's hung up somewhere, but we have no idea where. We are using Python 2.3, on an openBSD box, running the python script from the shell. Is it possible to somehow find out what is making it hang up?