Let\'s say I have just called a function, f, and an error occurred somewhere in the function. I just want to be able to check out the values of different varia
Probably answers the question best. However, I wanted to mention another handy debugging tool, traceback(). Calling this right after an error has occurred is often enough to pinpoint the bug.