2017 © Pedro Peláez
 

yii2-extension yii2-debug

The debugger extension for the Yii framework

image

yiisoft/yii2-debug

The debugger extension for the Yii framework

  • Friday, July 13, 2018
  • by cebe
  • Repository
  • 35 Watchers
  • 130 Stars
  • 4,099,135 Installations
  • PHP
  • 662 Dependents
  • 0 Suggesters
  • 93 Forks
  • 50 Open issues
  • 25 Versions
  • 7 % Grown

The README.md

, (*1)

Debug Extension for Yii 2


This extension provides a debugger for Yii framework 2.0 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., (*2)

For license information check the LICENSE-file., (*3)

Documentation is at docs/guide/README.md., (*4)

Latest Stable Version Total Downloads Build Status, (*5)

Installation

The preferred way to install this extension is through composer., (*6)

Either run, (*7)

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

or add, (*8)

"yiisoft/yii2-debug": "~2.1.0"

to the require section of your composer.json file., (*9)

Usage

Once the extension is installed, simply modify your application configuration as follows:, (*10)

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., (*11)

Open Files in IDE

You can create a link to open files in your favorite IDE with this configuration:, (*12)

return [
    'bootstrap' => ['debug'],
    'modules' => [
        'debug' => [
            'class' => 'yii\debug\Module',
            'traceLine' => '<a href="phpstorm://open?url={file}&line={line}">{file}:{line}</a>',
            // 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: https://github.com/aik099/PhpStormProtocol - Sublime Text 3 on Windows or Linux: https://packagecontrol.io/packages/subl%20protocol - Sublime Text 3 on Mac: https://github.com/inopinatus/sublime_url, (*13)

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 tracePathMappings like this (change the path to your app):, (*14)

'tracePathMappings' => [
    '/app' => '/path/to/your/app',
],

Or you can create a callback for traceLine for even more control:, (*15)

'traceLine' => function($options, $panel) {
    $filePath = $options['file'];
    if (StringHelper::startsWith($filePath, Yii::$app->basePath)) {
        $filePath = '/path/to/your/app' . substr($filePath, strlen(Yii::$app->basePath));
    }
    return strtr('<a href="ide://open?url=file://{file}&line={line}">{text}</a>', ['{file}' => $filePath]);
},

The Versions

13/07 2018

dev-sol

dev-sol

The debugger extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

debug yii2 debugger

25/06 2018

dev-master

9999999-dev

The debugger extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

debug yii2 debugger

12/06 2018

2.1.x-dev

2.1.9999999.9999999-dev

The debugger extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

debug yii2 debugger

04/05 2018

dev-cebe-patch-1

dev-cebe-patch-1

The debugger extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

debug yii2 debugger

26/04 2018

dev-no-jquery

dev-no-jquery

The debugger extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

debug yii2 debugger

14/03 2018

dev-use-module-get-instead-of-yii-app

dev-use-module-get-instead-of-yii-app

The debugger extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

debug yii2 debugger

05/12 2017

2.0.13

2.0.13.0

The debugger extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

debug yii2 debugger

21/10 2017

dev-fix-user-detail-display

dev-fix-user-detail-display

The debugger extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

debug yii2 debugger

09/10 2017

2.0.12

2.0.12.0

The debugger extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

debug yii2 debugger

06/09 2017

2.0.11

2.0.11.0

The debugger extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

debug yii2 debugger

04/09 2017

2.0.10

2.0.10.0

The debugger extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

debug yii2 debugger

26/06 2017

dev-fix-user-component

dev-fix-user-component

The debugger extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

debug yii2 debugger

21/02 2017

2.0.9

2.0.9.0

The debugger extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

debug yii2 debugger

19/02 2017

2.0.8

2.0.8.0

The debugger extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

debug yii2 debugger

24/11 2016

2.0.7

2.0.7.0

The debugger extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

debug yii2 debugger

17/03 2016

2.0.6

2.0.6.0

The debugger extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

debug yii2 debugger

06/08 2015

2.0.5

2.0.5.0

The debugger extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

debug yii2 debugger

11/05 2015

2.0.4

2.0.4.0

The debugger extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

debug yii2 debugger

01/03 2015

2.0.3

2.0.3.0

The debugger extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

debug yii2 debugger

11/01 2015

2.0.2

2.0.2.0

The debugger extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

debug yii2 debugger

07/12 2014

2.0.1

2.0.1.0

The debugger extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

debug yii2 debugger

12/10 2014

2.0.0

2.0.0.0

The debugger extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

debug yii2 debugger

28/09 2014

2.0.0-rc

2.0.0.0-RC

The debugger extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

debug yii2 debugger

13/04 2014

2.0.0-beta

2.0.0.0-beta

The debugger extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

debug yii2 debugger

30/11 2013

2.0.0-alpha

2.0.0.0-alpha

The debugger extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

debug yii debugger