| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Database |
JDatabase |
debug |
debug() |
Never | Work in Progress |
Sets the debug level on or off. If debug mode is set, then each query will be logged and error messages will be displayed.
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. |
The following example will turn debugging on.
Example
$dbo = JFactory::getDBO(); $dbo->debug( 1 );