IT Placement Papers CMS Moodle
This category contains Moodle Interview Questions and Answers
|
How do I enable/disable debugging?
|
|
|
|
|
There are a few ways you can enable or disable debugging on your
site. If you are able to login as an administrator and access the Site
Administration block, then the easiest way is to go to
Admin->Server->Debugging and set it there. There are several
options - the most often recommended setting for debugging is 'ALL:
Show all reasonable PHP debugging messages'. To disable debugging,
simply set this to 'NONE: Do not show any errors or warnings.'.
If you are unable to set your debugging level in this manner,
you still have a couple ways to set it - in your config.php or in the
database.
- In moodle/config.php you can add these lines:
$CFG->debug=2047;
$CFG->debugdisplay=1;
- Then simply remove them (or comment them out) when you're done.
- To enable debugging in the database, simply use a database
utility such as the MySQL Admin plugin for Moodle, or PHPMyAdmin, etc.,
and enter the following:
UPDATE `mdl_config` SET `value` = '2047' WHERE `name` ='debug';
- To turn it back off, use this command:
UPDATE `mdl_config` SET `value` = '0' WHERE `name` ='debug';
Only registered users can write comments. Please login or register.
|