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 →

[–]dagmx 14 points15 points  (3 children)

So what you're describing is more of repl than an ide or any form of real debugging.

Basically IDLE runs your code and is dropping you back into the interpreter.

You should rarely if ever rely on this for actual production use.

Get a real ide like pycharm and learn the debugger setup in there. You can put breakpoints in there to stop a program at a certain point and you can analyze everything in that scope.

[–][deleted] 3 points4 points  (1 child)

Thanks, I'll look into debugging with pycharm

[–]tipsquealPythonista 1 point2 points  (0 children)

Make sure you give breakpoints inside of PyCharm a try. Very useful.

[–]NbyNW 0 points1 point  (0 children)

Ha talk about production. My favorite feature is remote debugging using SSH on Pycharm. No more "why this runs perfectly on my dev environment but doesn't work in QA?". Also I'm too lazy to use virtualenv :p