2 ms·
I've always found that print statements are usually best for code I wrote myself, whereas a debugger is most useful for other people's code.
by Symmetry 15y ago
I've always found that print statements are usually best for code I wrote myself, whereas a debugger is most useful for other people's code.
- burgerbrain 15y agoA combination of the two can be quite nice ;)
- gte910h 15y agoI've found those times people can't figure out why code doesn't work at all is almost always related to over reliance and trust of what the debugger is claiming to be truth. It can be faster, but output (printf or more complicated state outputs) seems to always be more reliable.