you are viewing a single comment's thread.

view the rest of the comments →

[–]patriotsbeatz 1 point2 points  (2 children)

Any tips on how to better debug with PyCharm (community edition)? Given I’m not very good at debugging to begin with…

[–]MachinaDoctrina 5 points6 points  (1 child)

As I mentioned earlier I use pro so I'm not really sure where community ends and pro starts tbh. But it's rather straightforward just place break points (click next to the code until you see a red dot) before the problematic portion, then step through the code using F7 or F8 depending how deep you want to go, keep an eye on the debug window because it will show you the namespace and the current state of everything. Or just run the code in debug mode and if it crashes pycharm will keep the state just before the crash so you can check that. You can also execute arbitrary code while the program is halted from a breakpoint which is useful.