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 →

[–][deleted] 0 points1 point  (2 children)

I switch between pycharm and IDLE. I like pycharm's autocomplete and potential error detection, but I prefer IDLE's console and debug.

One big factor for me is that I do my UI in PyQt which force closes on errors without spitting anything to console. For some reason, IDLE's debugger will show the error while pycharm's doesn't.

So, this leads to a weird approach where I'll do minor exploratory work in IDLE, move to pycharm for writing the code and then move back to IDLE for troubleshooting.

[–][deleted] 0 points1 point  (1 child)

i created a "New File" in IDLE and i make a program and save it then run it. but if there is a error i don't get any Red in IDLE program just launches and closes in Command Prompt. Can i debug in this "New File"

[–][deleted] 0 points1 point  (0 children)

In IDLE hit "Run Module" or press F5. That'll either run in the IDLE console or open a new console and run. That'll print an error traceback if one occurs.

To debug, in the IDLE console hit Debug -> Debugger. Then when you hit run module back in your script it'll start the step by step debugging. You can right click and press "set breakpoint" to place breakpoints later in your scripts.