d582054c77
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@1 b3834d28-1941-0410-a4f8-b48e95affb8f
16 lines
403 B
PHP
16 lines
403 B
PHP
<?php
|
|
// Turn debugging on
|
|
define('SCUTTLE_DEBUG',true);
|
|
|
|
// generic debugging function
|
|
// Sample:
|
|
// pc_debug(__FILE__, __LINE__, "This is a debug message.");
|
|
|
|
function pc_debug($file, $line, $message) {
|
|
if (defined('SCUTTLE_DEBUG') && SCUTTLE_DEBUG) {
|
|
error_log("---DEBUG-". $sitename .": [$file][$line]: $message");
|
|
} else {
|
|
error_log("SCUTTLE_DEBUG disabled");
|
|
}
|
|
}
|
|
?>
|