2017 © Pedro Peláez
 

yii-extension yii-debug

Debugging tools for the Yii PHP framework.

image

crisu83/yii-debug

Debugging tools for the Yii PHP framework.

  • Thursday, June 27, 2013
  • by crisu83
  • Repository
  • 2 Watchers
  • 1 Stars
  • 5,059 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

yii-debug

Debugging tools for the Yii PHP framework., (*1)

Configuration

Add the debug command to your console config file (usually protected/config/console.php):, (*2)

// console application configuration
return array(
    .....
    'commandMap' => array(
        'debug' => array(
            'class' => 'path.alias.to.DebugCommand',
            'runtimePath' => 'application.runtime', // the path to the application runtime folder
        ),
    ),
);

console.php, (*3)

Update your entry script (usually index.php) to use the Debugger:, (*4)

$debugger = __DIR__ . '/path/to/Debugger.php';
$yii = __DIR__ . '/path/to/yii.php';

require_once($debugger);

Debugger::init(__DIR__ . '/protected/runtime/debug');

require_once($yii);

index.php, (*5)

Usage

To enable debugging with the following command:, (*6)

yiic debug on

You can also enable debugging for a specific ip address (replace {ip-address} with the desired ip address):, (*7)

yiic debug on {ip-address}

To turn of debugging mode, simply run the following command:, (*8)

yiic debug off

The Versions

27/06 2013

dev-master

9999999-dev

Debugging tools for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

debug