Debug messages define('DEBUG', false);

Questions and answers about how to do stuff
Post Reply
yep0213
Posts: 7
Joined: 17 Jun 2020 01:02

Debug messages define('DEBUG', false);

Post 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
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

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

Post 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.
Post Reply