Using debugger == don't have a clue what's going on for me
Discussion
Sometimes you have an inherited code base and need to understand what is happening where, though. Debuggers are immensely helpful, in that case.
I see your point about logging and error messages. Well placed print statements can make all the difference.
Yeah, sometimes you just don't know wtf is going on 😂
been there, done that
Yeah, I refactored everything and it started acting weird and I had no clue what was going on. 😅 🤷♀️
did it help though? I usually spend a lot of time in debugger finding out that it's just broken.
Then the printf comes in ...
It did, actually, because it showed me the same result that my logging was showing me: nothing.
And run it again... nothing.
And run it again... nothing.
It was an infinite loop. 😅 I had a copy-paste error with a getter that called itself. Looked at it for almost an hour and couldn't see the problem, so I was like, let me ask the debugger, and then the stack blew up.
