Debug logs are incredibly valuable for the wealth of information they contain, but generally speaking, companies avoid collecting them in production because they are very expensive in both dollars and performance. When we talk about production observability, we are likely spending more money for more data, data that itself might be excessive.
How do you debug your PHP code? If you use `echo`, `var_dump`, and `print_r`, there's a better way: use a debugger! Join Mauro Chojrin for an exploration of three world-class debuggers available for PHP.
It is pretty common to envision software developers spending most of their time writing fancy code, building new, shiny features for applications, and smoothly deploying them to production. However, the reality is usually messier. Things break all the time — your code fails, the system runs out of memory, exceptions go unhandled, dependencies conflict, servers overload, slow requests take forever, and whatnot.