for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Webino (http://webino.sk/)
*
* @link https://github.com/webino/WebinoDev/ for the canonical source repository
* @copyright Copyright (c) 2014-2017 Webino, s. r. o. (http://webino.sk/)
* @license BSD-3-Clause
*/
use Tracy\Debugger;
* Alias for var_dump()
* @param mixed $subject
function d($subject) {
var_dump($subject);
}
* Diyng var_dump()
function dd($subject) {
exit;
* Alias for print_r() scream
function p($subject) {
if (class_exists(Debugger::class)) {
Debugger::dump($subject);
return;
print_r($subject);
* Dying print_r() scream
function pd($subject) {
* Alias for print_r() return
* @return string
function pr($subject) {
return Debugger::dump($subject, true);
return print_r($subject, true);
* Debugger bar dump
function bd($subject) {
Debugger::barDump($subject);
* Web debugger break point
* Sometimes is useful by throwing an exception to check a backtrace.
* @link https://github.com/webino/WebinoDebug Web debugger
* @param string $msg
function e($msg = '') {
throw new \WebinoDev\Exception\DevelopmentException($msg);
* For testing purposes only
* @return bool
function isSelenium()
{
return file_exists('tmp/common/selenium.lock');