An open API service indexing awesome lists of open source software.

https://github.com/pmvc-plugin/dev

PMVC for develop information
https://github.com/pmvc-plugin/dev

pmvc-debug

Last synced: about 1 month ago
JSON representation

PMVC for develop information

Awesome Lists containing this project

README

          

[![Latest Stable Version](https://poser.pugx.org/pmvc-plugin/dev/v/stable)](https://packagist.org/packages/pmvc-plugin/dev)
[![Latest Unstable Version](https://poser.pugx.org/pmvc-plugin/dev/v/unstable)](https://packagist.org/packages/pmvc-plugin/dev)
[![CircleCI](https://circleci.com/gh/pmvc-plugin/dev/tree/main.svg?style=svg)](https://circleci.com/gh/pmvc-plugin/dev/tree/main)
[![License](https://poser.pugx.org/pmvc-plugin/dev/license)](https://packagist.org/packages/pmvc-plugin/dev)
[![Total Downloads](https://poser.pugx.org/pmvc-plugin/dev/downloads)](https://packagist.org/packages/pmvc-plugin/dev)

dev
===============

## How to set debug level
* https://github.com/pmvc-plugin/debug#how-to-trigger-debug

## Best plug order
* 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
]);
```

## Unit test tip
```
\PMVC\plug('debug',[
'output'=> '*Output Plugin*'
])->setLevel('*Test Level*', true);
\PMVC\plug('dev')->onResetDebugLevel();
```

### phpunit
* https://github.com/pmvc-plugin/dev/blob/main/tests/DevWithPhpUnitTest.php

### debug with cli
```php
\PMVC\plug('dev')->debug_with_cli();
```

* display debug only (without trace)
```php
\PMVC\plug('dev')->debug_with_cli('debug');
```

* accept multiple dump level
```php
\PMVC\plug('dev')->debug_with_cli('debug, trace, help');
```

## Why help also trigger dump
* https://github.com/pmvc-plugin/dev/blob/main/dev.php#L45

## Install with Composer
CLICK TO SEE


### 1. Download composer
* mkdir test_folder
* curl -sS https://getcomposer.org/installer | php

### 2. Install by composer.json or use command-line directly
#### 2.1 Install by composer.json
* vim composer.json
```
{
"require": {
"pmvc-plugin/dev": "dev-master"
}
}
```
* php composer.phar install

#### 2.2 Or use composer command-line
* php composer.phar require pmvc-plugin/dev

or

* composer require pmvc-plugin/dev