PHPackages                             senyor/yii2-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. senyor/yii2-debug

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

senyor/yii2-debug
=================

The debugger extension for the Yii framework

2.0.13(8y ago)012BSD-3-ClausePHP

Since Nov 30Pushed 8y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (20)Used By (0)

 [ ![](https://avatars0.githubusercontent.com/u/993323) ](https://github.com/yiisoft)

Debug Extension for Yii 2
=========================

[](#debug-extension-for-yii-2)

This extension provides a debugger for [Yii framework 2.0](http://www.yiiframework.com) applications. When this extension is used, a debugger toolbar will appear at the bottom of every page. The extension also provides a set of standalone pages to display more detailed debug information.

For license information check the [LICENSE](LICENSE.md)-file.

Documentation is at [docs/guide/README.md](docs/guide/README.md).

[![Latest Stable Version](https://camo.githubusercontent.com/6e01da676caa51c1b5141a197bd15b2b64530639562cd1629743d2f0ee4499c8/68747470733a2f2f706f7365722e707567782e6f72672f796969736f66742f796969322d64656275672f762f737461626c652e706e67)](https://packagist.org/packages/yiisoft/yii2-debug)[![Total Downloads](https://camo.githubusercontent.com/4826520a9417e5918d00d5115bd3a12c569d9e317c146bd91d645d6921af2435/68747470733a2f2f706f7365722e707567782e6f72672f796969736f66742f796969322d64656275672f646f776e6c6f6164732e706e67)](https://packagist.org/packages/yiisoft/yii2-debug)[![Build Status](https://camo.githubusercontent.com/5b748806be681e57d5765bb44aae7e922dcf9cef64d1f0c72745b861bd25e94e/68747470733a2f2f7472617669732d63692e6f72672f796969736f66742f796969322d64656275672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/yiisoft/yii2-debug)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist yiisoft/yii2-debug

```

or add

```
"yiisoft/yii2-debug": "~2.0.0"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply modify your application configuration as follows:

```
return [
    'bootstrap' => ['debug'],
    'modules' => [
        'debug' => [
            'class' => 'yii\debug\Module',
            // uncomment and adjust the following to add your IP if you are not connecting from localhost.
            //'allowedIPs' => ['127.0.0.1', '::1'],
        ],
        // ...
    ],
    ...
];
```

You will see a debugger toolbar showing at the bottom of every page of your application. You can click on the toolbar to see more detailed debug information.

Open Files in IDE
-----------------

[](#open-files-in-ide)

You can create a link to open files in your favorite IDE with this configuration:

```
return [
    'bootstrap' => ['debug'],
    'modules' => [
        'debug' => [
            'class' => 'yii\debug\Module',
            'traceLine' => '{file}:{line}',
            // uncomment and adjust the following to add your IP if you are not connecting from localhost.
            //'allowedIPs' => ['127.0.0.1', '::1'],
        ],
        // ...
    ],
    ...
];
```

You must make some changes to your OS. See these examples:

- PHPStorm:
- Sublime Text 3 on Windows or Linux:
- Sublime Text 3 on Mac: [https://github.com/inopinatus/sublime\_url](https://github.com/inopinatus/sublime_url)

#### Virtualized or dockerized

[](#virtualized-or-dockerized)

If your application is run under a virtualized or dockerized environment, it is often the case that the application's base path is different inside of the virtual machine or container than on your host machine. For the links work in those situations, you can configure `traceLine` like this (change the path to your app):

```
'traceLine' => function($options, $panel) {
    $filePath = str_replace(Yii::$app->basePath, '~/path/to/your/app', $options['file']);
    return strtr('{text}', ['{file}' => $filePath]);
},
```

###  Health Score

31

↑

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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.

###  Release Activity

Cadence

Every ~91 days

Recently: every ~71 days

Total

17

Last Release

3082d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/37fd15a2140e4389ce98d5f645b0e1256f5e481f0f4b211e0c25177228d10778?d=identicon)[senyor](/maintainers/senyor)

---

Top Contributors

[![qiangxue](https://avatars.githubusercontent.com/u/993322?v=4)](https://github.com/qiangxue "qiangxue (1943 commits)")[![cebe](https://avatars.githubusercontent.com/u/189796?v=4)](https://github.com/cebe "cebe (780 commits)")[![samdark](https://avatars.githubusercontent.com/u/47294?v=4)](https://github.com/samdark "samdark (715 commits)")[![klimov-paul](https://avatars.githubusercontent.com/u/1482054?v=4)](https://github.com/klimov-paul "klimov-paul (333 commits)")[![creocoder](https://avatars.githubusercontent.com/u/896494?v=4)](https://github.com/creocoder "creocoder (148 commits)")[![resurtm](https://avatars.githubusercontent.com/u/100198?v=4)](https://github.com/resurtm "resurtm (124 commits)")[![Ragazzo](https://avatars.githubusercontent.com/u/1748844?v=4)](https://github.com/Ragazzo "Ragazzo (87 commits)")[![schmunk42](https://avatars.githubusercontent.com/u/649031?v=4)](https://github.com/schmunk42 "schmunk42 (49 commits)")[![lucianobaraglia](https://avatars.githubusercontent.com/u/374554?v=4)](https://github.com/lucianobaraglia "lucianobaraglia (45 commits)")[![suralc](https://avatars.githubusercontent.com/u/730039?v=4)](https://github.com/suralc "suralc (42 commits)")[![pmoust](https://avatars.githubusercontent.com/u/2493339?v=4)](https://github.com/pmoust "pmoust (36 commits)")[![slavcodev](https://avatars.githubusercontent.com/u/757721?v=4)](https://github.com/slavcodev "slavcodev (20 commits)")[![LarryUllman](https://avatars.githubusercontent.com/u/1674823?v=4)](https://github.com/LarryUllman "LarryUllman (18 commits)")[![kartik-v](https://avatars.githubusercontent.com/u/3592619?v=4)](https://github.com/kartik-v "kartik-v (16 commits)")[![pana1990](https://avatars.githubusercontent.com/u/6630197?v=4)](https://github.com/pana1990 "pana1990 (13 commits)")[![bwoester](https://avatars.githubusercontent.com/u/309565?v=4)](https://github.com/bwoester "bwoester (12 commits)")[![crtlib](https://avatars.githubusercontent.com/u/4428231?v=4)](https://github.com/crtlib "crtlib (12 commits)")[![tarasio](https://avatars.githubusercontent.com/u/1010578?v=4)](https://github.com/tarasio "tarasio (12 commits)")[![gonimar](https://avatars.githubusercontent.com/u/756571?v=4)](https://github.com/gonimar "gonimar (11 commits)")[![gevik](https://avatars.githubusercontent.com/u/434535?v=4)](https://github.com/gevik "gevik (10 commits)")

---

Tags

debugdebuggeryii2

### Embed Badge

![Health badge](/badges/senyor-yii2-debug/health.svg)

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

###  Alternatives

[tracy/tracy

😎 Tracy: the addictive tool to ease debugging PHP code for cool developers. Friendly design, logging, profiler, advanced features like debugging AJAX calls or CLI support. You will love it.

1.8k24.4M1.3k](/packages/tracy-tracy)[yiisoft/yii2-debug

The debugger extension for the Yii framework

20323.5M598](/packages/yiisoft-yii2-debug)[vasek-purchart/tracy-blue-screen-bundle

This bundle lets you use the Tracy's debug screen in combination with the the default profiler in your Symfony application.

1177.6k](/packages/vasek-purchart-tracy-blue-screen-bundle)[kuria/error

Makes handling and debugging PHP errors suck less

1920.0k2](/packages/kuria-error)

PHPackages © 2026

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