https://github.com/pmvc-plugin/debug
https://github.com/pmvc-plugin/debug
debug pmvc-debug
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pmvc-plugin/debug
- Owner: pmvc-plugin
- Created: 2015-07-03T19:06:07.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2022-07-23T19:36:14.000Z (almost 4 years ago)
- Last Synced: 2025-02-28T11:45:24.282Z (over 1 year ago)
- Topics: debug, pmvc-debug
- Language: PHP
- Homepage:
- Size: 53.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://packagist.org/packages/pmvc-plugin/debug)
[](https://packagist.org/packages/pmvc-plugin/debug)
[](https://circleci.com/gh/pmvc-plugin/debug/tree/master)
[](https://packagist.org/packages/pmvc-plugin/debug)
[](https://packagist.org/packages/pmvc-plugin/debug)
PMVC debug tool
===============
## Debug output plugin
1. Debug for browser console
* https://github.com/pmvc-plugin/debug_console
1. Debug with json output (API... etc view.)
* https://github.com/pmvc-plugin/debug_store
* Use with view engine
1. Use with command line (Bash ... etc shell script)
* https://github.com/pmvc-plugin/debug_cli
## 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
* 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