V
V
vaflya2019-03-28 21:33:41
PHP
vaflya, 2019-03-28 21:33:41

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

1 answer(s)
A
Anton Shamanov, 2019-03-28
@SilenceOfWinter

a professional bike builder can set an exception handler and check in one place

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question