Enabling and disabling debug mode in PHP?

How to make a global boolen variable $_DEBUG to in one place to enable or disable debugging of the site. That is, a code will be scattered exceptions and they will be checked $_DEBUG and if true then an error is displayed (for example PDO). As far as I know framwork for this whole console there? And for Orthodox velodromes normal method?
March 19th 20 at 09:05
1 answer
March 19th 20 at 09:07
professional velostrail can set the exception handler in one place to check
I'm Orthodox and not a professional))) - seth.Anderson commented on March 19th 20 at 09:10
@seth.Anderson, Aah I'm sorry - keenan26 commented on March 19th 20 at 09:13
@keenan26, we go to jail =))) - seth.Anderson commented on March 19th 20 at 09:16

Find more questions by tags DebuggingPHP