- put dev before debug, you could get most of plug trace
\PMVC\Load::plug([
'controller'=>null
,'dispatcher'=>null
/*dev*/
,'error'=>['all']
,'dev'=>null
,'debug'=>null
]);
\PMVC\plug('debug',[
'output'=> '*Output Plugin*'
])->setLevel('*Test Level*', true);
\PMVC\plug('dev')->onResetDebugLevel();
\PMVC\plug('dev')->debug_with_cli();
- display debug only (without trace)
\PMVC\plug('dev')->debug_with_cli('debug');
- accept multiple dump level
\PMVC\plug('dev')->debug_with_cli('debug, trace, help');
CLICK TO SEE
### 1. Download composer * mkdir test_folder * curl -sS https://getcomposer.org/installer | php
- vim composer.json
{
"require": {
"pmvc-plugin/dev": "dev-master"
}
}
- php composer.phar install
- php composer.phar require pmvc-plugin/dev
or
- composer require pmvc-plugin/dev