3 ms·
You could make the same argument for using console logging instead of debuggers, and many developers get along with that just fine. Yet they’re missing out on a
by 9dev 3y ago
You could make the same argument for using console logging instead of debuggers, and many developers get along with that just fine. Yet they’re missing out on a lot of productivity they never knew was able to be gained.
- citrin_ru 3y agoDebug 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.