Re:Guide to Python Debugging
by vonseel on Tuesday June 02, 2020 @02:49AM
(#23388342)
Yeah I agree entirely on Pychaem debugger being awesome. But it’s no substitute for logging in production. Somethings just need to be logged, either for proof or those situations where you just can’t reasonably attach a Pycharm debugger.
[ Parent
| on HN ]
Re:Guide to Python Debugging
by underdeserver on Tuesday June 02, 2020 @03:56AM
(#23388745)
Yes, logging is crucial for knowing what happened, but if you don't understand how it could have happened, step by step debugging is immensely useful. Assuming, of course, you can reproduce in your dev environment.
Re:Guide to Python Debugging
by _coveredInBees on Tuesday June 02, 2020 @12:01PM
(#23392493)
Oh yes, absolutely. I didn't mean to say logging isn't useful. It is vital to have good logging for production because like you said, you aren't just going to be able to attach a debugger. But for an article titled "Guide to Python Debugging", logging should be a short paragraph, not the core of the article imo. Debugging in production on the other hand... then logging makes a lot of sense to focus on.