News for hackers. Stuff that matters.
Re:How to debug small programs by mopedDreams on Friday March 07, 2014 @07:32AM (#7359837)
Print("If you're reading this, that means the program got to this point!")
Re:How to debug small programs by cooper12 on Friday March 07, 2014 @09:27AM (#7360351)
Yep. This can be very useful. You could even print out the values of variables at certain points. It become less useful though as the output of the program increases, or as your program becomes more complex. that's when the things mentioned in the OP are helpful.