2017 © Pedro Peláez
 

library dumpedie

Another var_dump-like debugging function with special debugging features

image

senseexception/dumpedie

Another var_dump-like debugging function with special debugging features

  • Friday, June 1, 2018
  • by SenseException
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

dumpedie Build Status

Another var_dump like debugging function with special debugging features., (*1)

Once upon a time, there was var_dump ...

and var_dump was our biggest help when it came to debug code. Today, we have debugger in our IDEs that covers nearly every need of a PHP developer, but every now and then, we still need to go back to our var_dump beginnings. This is where dumpedie can be of help., (*2)

An alternative var_dump

dumpedie is an alternative to PHP's build-in var_dump to debug code when no IDE with a debugger is available. It uses Symfony's VarDumper component in its core to highlight and format the output. You only have to use the function like you already know from var_dump:, (*3)

dumpedie($var1, $var2, $object);

In addition, dumpedie offers some small nifty features., (*4)

Conditions

Only output the followed content in dumpedie when a condition set with dd_cond() was met., (*5)

dumpedie($var1, dd_cond('foo' === $value), $var2);

This always shows the content of $var1, but it only shows the content of $var2 if the variable $value is foo., (*6)

Trace

Sometimes you want to know the whole trace from where your code was called from. dd_trace() shows a trace like you know from exceptions and offers you insight to the method's calls., (*7)

dumpedie(dd_trace());

The Versions

01/06 2018

dev-master

9999999-dev

Another var_dump-like debugging function with special debugging features

  Sources   Download

MIT

The Requires

 

The Development Requires

by Claudio Zizza

debug dump debugging var_dump

23/04 2018

0.9.0

0.9.0.0

Another var_dump-like debugging function with special debugging features

  Sources   Download

MIT

The Requires

 

The Development Requires

by Claudio Zizza

debug dump debugging var_dump