All Projects → yiisoft → yii-debug

yiisoft / yii-debug

Licence: BSD-3-Clause license
Yii debug panel extension

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to yii-debug

symfony-debug-toolbar-git
Get the latest Git commit information into Symfony debug toolbar
Stars: ✭ 30 (+30.43%)
Mutual labels:  debugbar, debug
var-dumper
Helper for dumping variable for debug purposes
Stars: ✭ 13 (-43.48%)
Mutual labels:  debug, yii3
Pysnooper
Never use print for debugging again
Stars: ✭ 14,815 (+64313.04%)
Mutual labels:  debug
gdbundle
Minimalist plugin manager for GDB and LLDB
Stars: ✭ 72 (+213.04%)
Mutual labels:  debug
awaitwhat
Await, What?
Stars: ✭ 48 (+108.7%)
Mutual labels:  debug
Cli Debugging Cheatsheets
🔥 Collection of command-line debugging cheatsheets for multiple languages and runtimes
Stars: ✭ 239 (+939.13%)
Mutual labels:  debug
fastapi-debug-toolbar
A debug toolbar for FastAPI.
Stars: ✭ 90 (+291.3%)
Mutual labels:  debug
Icecream Cpp
🍦 Never use cout/printf to debug again
Stars: ✭ 225 (+878.26%)
Mutual labels:  debug
ifto
A simple debugging module for AWS Lambda (λ) timeout
Stars: ✭ 72 (+213.04%)
Mutual labels:  debug
arm-hard-fault-handler
What to do when Hard fault hits? Debugger and error reporter solution for ARM Cortex M3 and M4.
Stars: ✭ 32 (+39.13%)
Mutual labels:  debug
Laravel Debugbar
Laravel Debugbar (Integrates PHP Debug Bar)
Stars: ✭ 13,485 (+58530.43%)
Mutual labels:  debugbar
Gulp Strip Debug
Strip console, alert, and debugger statements from JavaScript code
Stars: ✭ 242 (+952.17%)
Mutual labels:  debug
UnityCLI
Unity TCP CLI communication for debugging
Stars: ✭ 22 (-4.35%)
Mutual labels:  debug
Simple Pt
Simple Intel CPU processor tracing on Linux
Stars: ✭ 232 (+908.7%)
Mutual labels:  debug
debugging-async-operations-in-nodejs
Example code to accompany my blog post on debugging async operations in Node.js.
Stars: ✭ 22 (-4.35%)
Mutual labels:  debug
Kint
Kint - a powerful and modern PHP debugging tool.
Stars: ✭ 2,582 (+11126.09%)
Mutual labels:  debug
debugbar-plugin
Integrates PHP Debugbar with October CMS
Stars: ✭ 36 (+56.52%)
Mutual labels:  debugbar
alog
Update: use loguru instead. Simple straight logging your Python code
Stars: ✭ 38 (+65.22%)
Mutual labels:  debug
eruda-webpack-plugin
A webpack plugin of eruda to help you develop mobile app
Stars: ✭ 56 (+143.48%)
Mutual labels:  debug
doks-debug
A Docker image with Kubernetes manifests for investigation and troubleshooting.
Stars: ✭ 82 (+256.52%)
Mutual labels:  debug

Debug Extension for Yii


This extension provides a debugger for Yii framework 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-file.

Latest Stable Version Total Downloads Build status Scrutinizer Code Quality Code Coverage Mutation testing badge static analysis type-coverage

Installation

The preferred way to install this extension is through composer.

composer require --prefer-dist yiisoft/yii-debug

Usage

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

return [
    'bootstrap' => ['debug'],
    'modules' => [
        'debug' => [
            'class' => Yiisoft\Yii\Debug\Module::class,
            // 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

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

return [
    'bootstrap' => ['debug'],
    'modules' => [
        'debug' => [
            'class' => Yiisoft\Yii\Debug\Module::class,
            '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:

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($this->app->basePath, '~/path/to/your/app', $options['file']);
    return strtr('<a href="ide://open?url=file://{file}&line={line}">{text}</a>', ['{file}' => $filePath]);
},

Unit testing

The package is tested with PHPUnit. To run tests:

./vendor/bin/phpunit

Mutation testing

The package tests are checked with Infection mutation framework. To run it:

./vendor/bin/infection

Static analysis

The code is statically analyzed with Psalm. To run static analysis:

./vendor/bin/psalm

Support the project

Open Collective

Follow updates

Official website Twitter Telegram Facebook Slack

License

The Debug Extension for Yii is free software. It is released under the terms of the BSD License. Please see LICENSE for more information.

Maintained by Yii Software.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].