Support Joomla!

references:joomla.framework:database:jdatabase-debug

Table of Contents

debug

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Database Class JDatabase Method debug Reference 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.

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.

Example

$dbo = JFactory::getDBO();
$dbo->debug( 1 );

Discussion

Full name:
E-Mail:
 
references/joomla.framework/database/jdatabase-debug.txt (935 views) · Last modified: 2007/08/15 14:52