Sources for file docs/debug.txt in version 3.0



Click on a comment to hide it. Click here to show all comments.
Error Debug

Required Files

    plugins
/errors/*

Configuration

    // Error Handler
    public $error_handler = 'xnyo';
    // Error Handling/Debug
    public $load_debug = true;


    /**
     * Debug Console
     *
     * xnyo's Debug console, when allowed, means you can append ?debug=true to get a debug output
     * of everything xnyo (or your scripts) are doing. Also, appending ?debug=notices will display
     * all PHP notices, ?debug=warnings does PHP Warnings, you get the idea.
    **/

    // whether to dump debug information. This is set to false normally, you can set it manually, or
    // allow xnyo to do it for you with ?debug
    
public $debug false;
    
    
// whether to allow xnyo to auto-turn on debug with the ?debug=true variable.
    // this is set to off by default for security reasons, leave it off unless you know you're using
    // it
    
public $allow_debug false;

    
// the template to display the debug console
    
public $debug_console_template 'plugins/error/debug.tpl';


Methods

    
'xnyo::trigger_error'    => 'xnyo: Trigger Error',
    
'xnyo::debug_console'    => 'xnyo: Debug Console',

Advanced Usage Example

    Debugging with Debug Console
!
    
Debug Console

    DUH
!

Website is Copyright © Odynia.org 2000-2005 - Xnyo is released under a BSD license.