Arrow_left   Arrow_right
 
  #93

Debug Mode

    • Status: Invalid
    • Priority: Normal (3)
    • Component: General Code
    • Type: Enhancement
    • Version: 0.4
    I think, it will be good to show some message if site is in Debug Mode...

    For example, as i did in *Admin_Controller*:

    $this->debug = $this->preference->item('page_debug');
    $this->output->enable_profiler( $this->debug );
    
    $this->page->set_title( $this->preference->item('site_name') . ($this->debug ? ' [DEBUG MODE]':''));
    }}}
    
    In this example, if site is in Debug Mode then Page Title will be something like that
    
    {{{
    <title>Dashboard | BackendPro [DEBUG MODE]</title>



    The main idea is to show information that system is in Debug Mode... and not to forget to turn it back in preferences...
  • Followers
     
    Ico-users Sergey Dyagovchenko 
     
    Attachments
    No attachments
    Associations
     
    No associations
    Activity
     
    User picture

          on Feb 25, 2009 @ 08:58PM UTC * By Adam Price

    I am thinking of removing debug mode I have to say, since I can only see it being used during a site upgrade, when it won't work anyway since the site files are being replaced.
    User picture

          on Jul 03, 2009 @ 10:55PM UTC * By Adam Price

    Status changed from New to Invalid
    This feature has now been turned back on in the settings.php file. I will not add an extra DEBUG message since I think very large page statistics on every page is pretty obvious that it is turned on.
    Time Expenditure
    Loading