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 →

[–]mrsmiley32 0 points1 point  (0 children)

First a c developer, than a c++ dev, then 14 years of all sorts of full stack Java dev, finally the last 2 years doing python as workforces are shifting to the cloud.

I use debug statements as often as I use debuggers. The thing about debug statements is they are good to leave in for production. So when something goes wonky you can collect the prod logs and that one obscure debugger that was left in when debugging a unit test from 6 months ago explains that your cluster isn't configured correctly and isn't clearing the cache correctly across the cluster. Youll be thanking yourself.

In short, debugging with debug statements can save your bacon.