Remix.run Logo
mjevans 5 days 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.

spacechild1 5 days ago | parent | next [-]

I 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).

giveita 5 days ago | parent | prev [-]

Yeah and by good print statement you mean use a structured logging lib?