github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

anttih / starburst_debug_console

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 2
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (1)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (2)
    • domtpl
    • master ✓
  • Tags (1)
    • 0.1.0-alpha
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Debugging and profiling console for Solar — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Merge branch 'master' of git@github.com:anttih/starburst_debug_console 
anttih (author)
Sat Feb 28 02:22:39 -0800 2009
commit  75c66685dcc6f2c970fff9b6f9306504433ca876
tree    1697a5fe23f7d9a50bd0f2060df3ab73b2fb3a70
parent  8bd999734b3ef9275e915f06ddd1c64f81b5522d parent  ef075f5467aa2ea26f0116f9b8edbb12902d18ad
starburst_debug_console /
name age
history
message
file README.markdown Loading commit data...
directory Starburst/
README.markdown

Starburst_Debug_Console - Debugging and profiling console for Solar

Solar is a framework for PHP5. Starburst_Debug_Console is a debugging and profiling console for Solar applications. Once installed, you will see a console on top of your website which has information about the request and PHP environment.

Features:

  • No coding needed. You only need to set a few config values.
  • SQL profiler (through Solar_Sql)
  • Log viewer (through integrated custom log writer for Solar_Log)
  • PHP environment view ($_SERVER variables)

Installation

  1. Install the files somewhere in your project.

    I recommend using the "Solar system" project structure. In this case you should put the files under $system/source/starburst-debug-console.

  2. Add Starburst directory to your include_path.

    If your project is a "Solar system", you can add it to include_path with:

    cd $system/include  
    ln -s ../source/starburst-debug-console/Starburst .
    
  3. Add symlinks to your Public dir.

    cd $system/docroot/public  
    ln -s ../../source/starburst-debug-console/Starburst/Debug/Console/Public ./Starburst_Debug_Console
    
  4. Configure the debug console.

    Here's an example configuration:

    // turn on SQL query profiling
    $config['Solar_Sql']['profiling'] = true;
    
    $config['Solar']['registry_set']['debug-report'] = 'Starburst_Debug_Console';
    
    $config['Solar']['registry_set']['log'] = array('Solar_Log', array(
        'adapter'   => 'Starburst_Log_Adapter_Var',
        'events'    => array('notice', 'debug', 'warning'),
    ));
    
    // display only when in browser
    if (PHP_SAPI != 'cli') {
        // this will display the console
        $config['Solar']['stop'][] = array('debug-report', 'display');
    }
    
    You might want to put the configuration inside a conditional so that the console is shown only in development environment.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server