How can I get a traceback on function calls?

How can I get a traceback on function calls?