====== debug ====== {#JAPI Joomla.Framework Database JDatabase::debug #} Sets the debug level on or off. If debug mode is set, then each query will be logged and error messages will be displayed. ===== Syntax ===== void debug ( **$level** ) | **$level** | integer | is an integer that specifies whether or not debugging should be turned. A value of 1 will turn debugging on, a value of 0 will turn it off. | ===== Examples ===== The following example will turn debugging on. $dbo = JFactory::getDBO(); $dbo->debug( 1 ); ---- ~~DISCUSSION~~