3 ms·
Debug logs and debugger not replace but complement each other. And while in many situations it is possible to debug without a debugger by adding print-s reverse
by citrin_ru 3y ago
Debug logs and debugger not replace but complement each other. And while in many situations it is possible to debug without a debugger by adding print-s reverse is not true - I see no way how a debugger can replace logs. Though good debug logs are rare nginx and postfix are rare examples where debug logs are really useful (may be bad debug logs is why this tool got bad reputation).
What to some extend can replace debug logs is tracing which allows to logs events on demand, when you really need them. E. g. Dtrace can be used both for kernel and userspace via USDT (but Dtrace was not invented h̵e̵r̵e̵ on Linux), bpftrace can instrument kernel but unsure about userspace.