pmvc-plugin / debug
pmvc debug dump tool
Installs: 9 982
Dependents: 6
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
Requires (Dev)
README
PMVC debug tool
Debug output plugin
- 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)
How to Trigger debug
- 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
Install with Composer
CLICK TO SEE
1. Download composer
- mkdir test_folder
- curl -sS https://getcomposer.org/installer | php
2. Install Use composer.json or use command-line directly
2.1 Install Use composer.json
- vim composer.json
{
"require": {
"pmvc-plugin/debug": "dev-master"
}
}
- php composer.phar install
2.2 Or use composer command-line
- php composer.phar require pmvc-plugin/debug
or
- composer require pmvc-plugin/debug