How to disable dump()
function,
when its in production environment?
If i forget the dump function anywhere It crashes with an 500 error
It would be nice if the dump showed up in a log or as HTML comments so that it would be useful for those situations, where something in your production environment is not working quite right but you need to keep the production environment working as normal. Granted you can't output the pretty HTML you normally see in dump. I have used this technique before and it can be very useful for debugging production issues or some basic performance checks.