Using debugger == don't have a clue what's going on for me

Reply to this note

Please Login to reply.

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.

weird that it did not overflow. some sort of magical tail recursion. php got much better then i remember ))

ok world is back in order. php does not have tail call recursion. I can keep hating it.