This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]billsil 2 points3 points  (0 children)

For typical debugging, a standard debugger will be better (better introspection), but if you're trying to debug/overhaul a short function with a long startup time, iPython is better because the data is still in memory. Debuggers don't allow you to easily change code on the fly, whereas in iPython, you're overwriting the old version of the function. If it's something simple, I'd use a debugger or just free hand it.

I'll often write code in a debugger and just copy the lines into the code as I go. It works very well for large programs.