Page 1 of 1

Debug messages define('DEBUG', false);

Posted: 19 Jun 2020 00:32
by yep0213
conf.php
// Debug messages
define('DEBUG', false);
-------------------------------------------------
Does anyone know about the debug function
define('DEBUG', true);
If there is a problem, is it possible to use define('DEBUG', true) to open the debug log function, this function can record those logs, and at the same time where the logs are saved

Re: Debug messages define('DEBUG', false);

Posted: 19 Jun 2020 03:57
by pdwalker
if you search for DEBUG in the /var/www/html/mailscanner/*.php, you'll find that DEBUG is just a flag that causes additional output to be added to the html.

If you look at those statements, you'll see reference to the function debug() function in functions.php. Apparently it'll output the debug information as html comments inside the webpage itself.

I've not tested it to confirm.

I normally use the error_log function and then just watch the php error log for my instance.