PHPackages                             lyhiving/debug - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. lyhiving/debug

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

lyhiving/debug
==============

PHP debug

2.13(3y ago)334MITPHPPHP &gt;=5.4

Since Aug 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/lyhiving/debug)[ Packagist](https://packagist.org/packages/lyhiving/debug)[ Docs](https://github.com/lyhiving/debug)[ RSS](/packages/lyhiving-debug/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)DependenciesVersions (18)Used By (0)

debug
-----

[](#debug)

简单的php调试库。

主要功能：

1、实现将受访URL、GET、POST、COOKIE、SESSION、SERVER等参数记录到文件。

2、log你想要log的内容。

3、提供dump、\_dump两个常规函数以便日常调试。

4、增加命令行的支持

少啰嗦，先看东西
--------

[](#少啰嗦先看东西)

[![最简单版本](https://raw.githubusercontent.com/lyhiving/debug/master/examples/image/1.png)](https://raw.githubusercontent.com/lyhiving/debug/master/examples/image/1.png)

[![综合使用](https://raw.githubusercontent.com/lyhiving/debug/master/examples/image/2.png)](https://raw.githubusercontent.com/lyhiving/debug/master/examples/image/2.png)

[![web调试用](https://raw.githubusercontent.com/lyhiving/debug/master/examples/image/3.png)](https://raw.githubusercontent.com/lyhiving/debug/master/examples/image/3.png)

[![命令行调试用](https://raw.githubusercontent.com/lyhiving/debug/master/examples/image/4.png)](https://raw.githubusercontent.com/lyhiving/debug/master/examples/image/4.png)

安装
--

[](#安装)

使用 Composer

```
composer require lyhiving/debug
```

```
{
    "require": {
            "lyhiving/debug": "2.*"
    }
}
```

用法
--

[](#用法)

### 普通青年：

[](#普通青年)

直接输出到当前目录下的debug.txt（其实你可以指定到任意可以写的位置）。

```
