Skip to content

Instantly share code, notes, and snippets.

@enumag
Last active January 4, 2016 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enumag/8669456 to your computer and use it in GitHub Desktop.
Save enumag/8669456 to your computer and use it in GitHub Desktop.
Codeception dump function
<?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