Sometimes when my code is doing something that i'm not too happy with I'll enter in debug statements.. my question is, should I put them in to see whats wrong and then take them out after I finish, or should I leave it in, create a bool variable, and enter a secret code from inside the program to toggle debug mode on and off? Normally I just leave my debug messages in there and enter "9678" from the menu to turn it on, but is this bad practice?
