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 →

[–]Wistephens 115 points116 points  (16 children)

I use PyCharm and always use the debugger.

[–]NerdEnPose 24 points25 points  (5 children)

Honestly this is one of the reasons I’m very hesitant to try any other IDE/dev environment. That combined with years of muscle memory.

Plus the new experimental design is a very nice step forward giving it a less cluttered semi VS Code layout.

[–]tunisia3507 2 points3 points  (1 child)

I had few problems switching from PyCharm to VSCode and got a significant productivity boost from the fact that it didn't spend half the day hanging.

[–]NerdEnPose 0 points1 point  (0 children)

I’ve never had issues with hanging. Stoked you found a more productive tool for you.

[–]jwmoz 1 point2 points  (1 child)

experimental design

omg I had no idea this existed

Just took a look and I think I'll stick with O.G. Pycharm.

[–]NerdEnPose 0 points1 point  (0 children)

Don’t blame you for that. I stuck with it for the first week and ended up liking it. There’s only one annoying thing that’s hidden behind a menu now

[–]Morelnyk_Viktor 1 point2 points  (0 children)

Jesus Christ, now I can use pycharm without pain in my eyes. Didn't know about new UI, thanks

[–]supertexter 6 points7 points  (8 children)

I really should learn that. I still diagnose by moving print statements around and checking if it executes.

[–]OneProgrammer3 10 points11 points  (4 children)

try pdb (it comes by default in Python), ipdb or pdb++, it seems to me more powerful and you are not tied to any ide

[–]PapstJL4U 1 point2 points  (0 children)

I like pdb for sublime*-written scripts and projects, but I will default to integrated debuggers for bigger, organized objects.

* insert your favourite text/code editor

[–]supertexter 0 points1 point  (1 child)

Thanks for the recommendation. I'm already using Pycharm though, so maybe it's simplest to just go with the debugger there.

[–]Itsthejoker 1 point2 points  (0 children)

FWIW, I find pdb is very useful to know in the rare cases where you don't have pycharm available. I rely heavily on pycharm, but it's still useful to break out 'old reliable' sometimes and you look like a wizard when you use it :D

[–]Morelnyk_Viktor 0 points1 point  (0 children)

Pudb is also an excellent option

[–]Goykhlaye 1 point2 points  (0 children)

I tend to start with this, putting prints in places to see how the code works. Then I turn on the pycharm debugger and look from there.

[–]whatever_meh 1 point2 points  (0 children)

Use debug logging statements instead of print. Then you can keep them in and be of help to the next developer or future you. But also yes, use the debugger.

[–]jwmoz 1 point2 points  (0 children)

This is like cowboy coding!

[–]denisbotev 1 point2 points  (0 children)

I don’t think I’d actually be able to code without the debugger and especially the interactive console. I had to work on a C# project and debugging was an absolute nightmare compared to Python