2017 © Pedro Peláez
 

yii2-extension yii2-debug

The debugger extension for the Yii framework

image

senyor/yii2-debug

The debugger extension for the Yii framework

  • Monday, January 22, 2018
  • by senyor
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 93 Forks
  • 0 Open issues
  • 20 Versions
  • 0 % 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.0.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 traceLine like this (change the path to your app):, (*14)

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

The Versions

22/01 2018

dev-master

9999999-dev

The debugger extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

debug yii2 debugger

21/01 2018

dev-dev

dev-dev

The debugger extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

debug yii2 debugger

21/01 2018

dev-dev-hotfix

dev-dev-hotfix

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

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

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