3 ms·
I'm not sure if the post applies debugging in production systems or only when developing. For production systems it was not always possible to use a debugger, a
by henrik_w 5y ago
I'm not sure if the post applies debugging in production systems or only when developing. For production systems it was not always possible to use a debugger, and you need logging there anyway, so finding bugs by looking at the logs has worked well for me. Not sure if that counts as print debugging.
Some reasons why using a debugger in prod was hard:
- knowing where to start. With logs, you get a picture of what has happened.
- not stopping threads
- not everybody can do it, but everybody can look at logs.
Wrote more about it here:
https://henrikwarne.com/2014/01/01/finding-bugs-debugger-versus-logging/ https://henrikwarne.com/2014/01/01/finding-bugs-debugger-ver...
-