You are not logged in.
- Topics: Active | Unanswered
Pages: 1
#1 2012-01-30 15:33:25
- Franz
- Lead developer
- From: Germany
- Registered: 2008-05-13
- Posts: 6,724
- Website
HOWTO: Enable debug mode
When debug mode is enabled, FluxBB will display
- more detailed error messages if/when something goes wrong.
- script generation time in the footer.
- no. of queries executed in the footer.
You can enable debug mode by adding this line to your config.php:
define('PUN_DEBUG', 1);
To get even more detailed information on queries, you can also add this line:
define('PUN_SHOW_QUERIES', 1);
NOTE: Debug mode is only intended for debugging and should be turned off again when you are done with debugging. This is especially relevant for the second constant which adds query information to every single page, not just error pages.
Offline
#2 2012-02-22 20:46:22
- Newman
- Member
- Registered: 2011-11-05
- Posts: 350
Re: HOWTO: Enable debug mode
Thanks Franz!
Offline
#4 2013-05-25 15:43:37
- Franz
- Lead developer
- From: Germany
- Registered: 2008-05-13
- Posts: 6,724
- Website
Re: HOWTO: Enable debug mode
This is not quite correct. PUN_ADMIN is the ID of the admin user group.
You would need to do this instead:
if ($pun_user['is_admin'])
{
define('PUN_DEBUG', 1);
define('PUN_SHOW_QUERIES', 1);
}
Note that this only works after include/common.php has been loaded (or at the end of that file).
Offline
#5 2013-05-31 14:24:49
- Otomatic
- FluxBB Donor
- From: Paris - France
- Registered: 2010-01-26
- Posts: 576
- Website
Re: HOWTO: Enable debug mode
Hi,
Here https://fluxbb.org/resources/mods/toggl … eases/1.0/
Plugin to automatically modify include/common.php file to add possibilities to validate or devalidate DEBUG and/or SHOW QUERIES modes.
These modes will be activated ONLY for admin's
It is a Plugin. No manual modification of files is required.
Ce n'est pas parce que l'erreur se propage qu'elle devient vérité. Ghandi
An error does not become truth by reason of multiplied propagation. Ghandi
Offline
Pages: 1