- Debug for browser console
- Debug with json output (API... etc view.)
- https://github.com/pmvc-plugin/debug_store
- Use with view engine
- Use with command line (Bash ... etc shell script)
- http -> $_REQUEST['--trace']
- cli -> -t
- if set -t and value is empty will force level to 'trace'
- such as "pmvc -t"
- pmvc -tdebug # it mean set to debug level.
- pmvc -t debug # same
- if set -t and value is empty will force level to 'trace'
- hardcode -> \PMVC\plug('debug')->setLevel('xxx');
- PHPUnit -> https://github.com/pmvc-plugin/dev/blob/master/tests/DevWithPhpUnitTest.php
CLICK TO SEE
- mkdir test_folder
- curl -sS https://getcomposer.org/installer | php
- vim composer.json
{
"require": {
"pmvc-plugin/debug": "dev-master"
}
}
- php composer.phar install
- php composer.phar require pmvc-plugin/debug
or
- composer require pmvc-plugin/debug