PHPackages                             hyman-ren/yii2-chrome-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. hyman-ren/yii2-chrome-debug

ActiveYii2-extension[Debugging &amp; Profiling](/categories/debugging)

hyman-ren/yii2-chrome-debug
===========================

Yii2 Chrome Debug是一个Yii2代码的高效调试工具，提供安全的传输方式，可以用于生产环境进行安全调试。

414PHP

Since Aug 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/hyman-ren/yii2-chrome-debug)[ Packagist](https://packagist.org/packages/hyman-ren/yii2-chrome-debug)[ RSS](/packages/hyman-ren-yii2-chrome-debug/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (2)Used By (0)

Yii2 Chrome Debug
=================

[](#yii2-chrome-debug)

 Yii2 Chrome Debug是一个Yii2代码的高效调试工具，提供安全的传输方式，可以用于生产环境进行安全调试。

相比Yii2自己debug，有以下优点：
====================

[](#相比yii2自己debug有以下优点)

- 提供安全的传输方式，支持访问量不是太大的站点生产环境测试（采用AES对称加密，保证性能与安全）；
- 无html注入，不影响网站原来显示效果；
- 对不同模块产生的debug记录进行了分层折叠，让你对页面执行流程和模板层级关系一目了然，方便快速定位问题；
- 支持ajax请求debug，非常适合前后端分离的站点后端调试；
- 无缓存文件产生，无IO操作，理论上速度更快；
- 在console Debug，可以不用离开当前页面,Debug更容易。

使用方法：
=====

[](#使用方法)

- 确保你使用的是chrome内核浏览器，推荐Chrome、EDGE
- 运行 composer require hyman-ren/yii2-chrome-debug:dev-master
- 修改配置:

 修改Yii2配置：文件main-local.php，修改内容如下

```
   $config['bootstrap'][] = 'debug';
   $config['modules']['debug'] = [
        'class' => \hyman\debug\Module::className(),

        //autoFolding 选填，内部分组是否自动折叠，默认不折叠
        'autoFolding' => true,

        //debugLevel 选填，日志追溯层级，类似log中的traceLevel
        'debugLevel' => 3,

        //encryptType选填，加密类型，目前支持两种 aes和base64，默认base64，
        //开发环境建议base64，生产环境建议aes，
        //选中aes  aesKey aesIv两个参数必填，且必须16位，只支持英文字母、数字
        'encryptType' => 'aes',

        //aesKey 选填，加密的秘钥，加密类型为aes时候必填，必须16位，只支持英文字母、数字，修改后需要同步修改扩展包中对应的值
        'aesKey' => '1234567890123456',

        //aesIv 选填 加密的初始化向量，加密类型为aes时候必填，必须16位，只支持英文字母、数字，修改后需要同步修改扩展包中对应的值
        'aesIv'  => '1234567890123456',
   ];
	return $config;
```

 修改扩展包配置：如果aesKey、aesIv有修改，扩展包同步修改，base64加密忽略此步骤，文件 log.js

```
    var AES_IV  = '1234567890123456';
    var AES_KEY = '1234567890123456';
```

- 安装tool目录的chrome扩展包，并打开扩展包，点亮调试网站的调试图标。
- 修改nginx配置：为保证nginx header不会被撑爆，nginx vhost里添加以下代码:

```
        location ~ \.php$ {
            #以下两行需要添加，保证nginx header不会被撑爆
            fastcgi_buffer_size 512k;
            fastcgi_buffers 32 320k;
			#
            fastcgi_pass   127.0.0.1:9000;
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/dd149220c7d894c5f51edfe8aac11fa799d137bbf63c9a1a2bc6eaafe904717e?d=identicon)[hyman-ren](/maintainers/hyman-ren)

---

Top Contributors

[![hyman-ren](https://avatars.githubusercontent.com/u/14166258?v=4)](https://github.com/hyman-ren "hyman-ren (44 commits)")

### Embed Badge

![Health badge](/badges/hyman-ren-yii2-chrome-debug/health.svg)

```
[![Health](https://phpackages.com/badges/hyman-ren-yii2-chrome-debug/health.svg)](https://phpackages.com/packages/hyman-ren-yii2-chrome-debug)
```

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

2.8k387.2M918](/packages/symfony-stopwatch)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k29](/packages/fruitcake-laravel-debugbar)[spatie/ignition

A beautiful error page for PHP applications.

510147.6M69](/packages/spatie-ignition)[jokkedk/webgrind

Webgrind is a Xdebug profiling web frontend in PHP5. It implements a subset of the features of kcachegrind and installs in seconds and works on all platforms. For quick'n'dirty optimizations it does the job.

3.3k193.0k](/packages/jokkedk-webgrind)[koriym/printo

An object graph visualizer.

1421.8M2](/packages/koriym-printo)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
