How to debug a Python program?

How to debug a Python program?