Is there a way to disable debug module from the inside of e.g a controller?
It’s inconvenient to manipulate IP filter in the bootstrap each time some issue is showing. Debug module consumes a remarkable amount of memory and is often a source of memory-related fatal error itself.
It would be nice to have a possibility to disable debug log from the code.