3 ms·
Good print statements can become future logging entries for when software ships and debugging statements need to be turned on without source code access.
by mjevans 1y ago
Good print statements can become future logging entries for when software ships and debugging statements need to be turned on without source code access.
- giveita 1y agoYeah and by good print statement you mean use a structured logging lib?
- spacechild1 1y agoI think nobody is arguing against logging. However, printf-debugging typically means that you are inserting temporary printf statements to debug a specific issue. In that case, you can just use tracepoints instead (if your debugger supports them).