Installation & Configuration

Is there a "debug mode" for running Nucleus?

Scenario:
"I need to see log of database queries made by Nucleus but I can't seem to find any plugins for this purpose. Does Nucleus come with a "debug mode" by default?"

Solution:
Absolutely! You can debug a Nucleus installation by finding this following code snippet from the beginning of /nucleus/libs/globalfunctions.php:

$CONF['debug'] = 0;

then changing the 0 to a 1 like this:

$CONF['debug'] = 1;

However, this just enables errors to be shown, not logging of database queries. For that, you still need to follow some additional steps to write the queries to a file. You can do this by following the instructions in the tutorial "Enable Logging of Slow Queries (Slow Query Log) in MySQL Database".

Original forum thread (thanks, roel!):
http://forum.nucleuscms.org/viewtopic.php?t=15449

Further reading:

section: Installation & Configuration | submitted by Leng on 2007.Apr.04 | 1788 views

item rate
This answer was not rated yet.

Please tell us how useful this answer was to you (0 = useless, 10 = very very helpful):

10