How can I turn off the debugging in Moodle as I couldn't turn it off from the moodle itself?
What codes should be added to the config.php in order to implement that?
If one cannot turn off debugging from the Moodle Admin UI, there are more than likely lines in config.php of the site that have turned it on. If they are present, just comment them out by putting // in front of each of the lines that pertain.
To see what those lines should/might look like, see [yourcodedirectory]/config-dist.php file - Section 7.
'spirit of sharing', Ken
I understand that the configurations are setting in config.php but I want to know the exact code and how to change it to turn off the debugging