20
Is it okay to leave tests in your code?
(programming.dev)
This is a place where you can ask any programming / topic related to the instance questions you want!
For a more general version of this concept check out [email protected]
Icon base by Lorc under CC BY 3.0 with modifications to add a gradient
In general no. They aren't even ok during development. Instead you should learn to use a proper debugger. They let you break at a certain point, inspect all the variables, step through the program.
They're totally ok. Sometimes printf debugging is the best option. (I agree it's not an excuse to not use a real debugger though.)