Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/crisu83/yii-debug
Debugging tools for the Yii PHP framework.
https://github.com/crisu83/yii-debug
Last synced: 13 days ago
JSON representation
Debugging tools for the Yii PHP framework.
- Host: GitHub
- URL: https://github.com/crisu83/yii-debug
- Owner: crisu83
- Created: 2013-03-24T20:48:34.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-06-27T20:32:43.000Z (over 11 years ago)
- Last Synced: 2024-09-24T14:37:24.535Z (4 months ago)
- Language: PHP
- Size: 109 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
yii-debug
=========Debugging tools for the Yii PHP framework.
## Configuration
Add the debug command to your console config file (usually **protected/config/console.php**):
```php
// 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***Update your entry script (usually **index.php**) to use the Debugger:
```php
$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***## Usage
To enable debugging with the following command:
```
yiic debug on
```You can also enable debugging for a specific ip address (replace `{ip-address}` with the desired ip address):
```
yiic debug on {ip-address}
```To turn of debugging mode, simply run the following command:
```
yiic debug off
```