Printing fixes code?

Whenever I run into an unexpected behavior, I simply try to understand what’s going wrong by simply using breakpoints or print statements.

For some reason that I can’t explain, when printing/putting breakpoints, for some reason, errors that wouldn’t appear on my output when I wouldn’t have debugged my code, appears from nowhere mysteriously.

I’ve been noticing this for months, years and I’d just like to make sure that I’m not crazy. Does it usually happen to you?

3 Likes

I’ve had this happen a few times as well. It’s weird but I guess if code works it works.

1 Like

Yeah! I think this because of “wait” when you call print function