Last active
January 4, 2016 19:49
-
-
Save enumag/8669456 to your computer and use it in GitHub Desktop.
Codeception dump function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// requires -vv | |
// TODO: show location using @tracySkipLocation | |
// TODO: use colors if possible (Dumper::dump() + output buffering) | |
function debug($var) | |
{ | |
$dump = \Nette\Diagnostics\Dumper::toText($var); | |
\Codeception\Util\Debug::debug("\n" . trim($dump)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment