Answer the question
In order to leave comments, you need to log in
Enabling and disabling debug mode in PHP?
How correct would it be to make the $_DEBUG global boolen variable in order to enable or disable site debugging in one place. That is, exceptions will be scattered throughout the code and $ _DEBUG will be checked in them and if true, then an error is displayed (for example, PDO). As far as I know, there are entire consoles in the frameworks for this? Is it a normal method for an Orthodox bike builder?
Answer the question
In order to leave comments, you need to log in
a professional bike builder can set an exception handler and check in one place
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question