Using the KHXC Debugger
The KHXC has an excellent debugger embedded in all of it's functions. The debugger is turned on by editing the file:
{private}/core/KHXC/KHXC.php
At the top of that file you will see:
// +--
// | Debugger Note: The following debugger settings are valid:
// |
// | 0: Debugging off (default)
// | 1: File-based output (sent to {PRIVATE}/temp directory)
// | 2: Browser-based output (sent to web browser)
// +--
var $debug = 0;
Change the debug mode to '1' to log to a file in the {PRIVATE}/temp directory. Change to '2' to log to the browser window. If you choose to log to the browser window, make sure your skin has the following in it:
<?php
if ($this->debug == 2) {$this->include_file('khxc','debug.php');}
$this->include_file('khxc','closure.php');
?>
By default this is at the bottom of every skin. It won't be there if you removed it.
Now, access the page you want to debug and look at all of the cool info either in the temp file (mode = 1) or your browser window (mode = 2). Debugger entries are listed in the order of execution they are encountered while the KHXC and applications are executed. If you are debugging an error, do a find in the file/page for the term 'fatal' or 'error'.
Be sure to turn debugging off when you are finished as it should not be used in a production environment.
Wiki: Kryptronic Hybrid X Core
Wiki: ClickCartPro