When you are coding, things happen. When code goes live, things happen. Sometime, when those things happen it isn't practical, or in some cases even possible, to use XDebug in a fancy IDE. The old fashioned, light weight approach of echoing variables from deep inside the code comes to the rescue. But, echo and var_export have are not the most friendly or productive tools. This is where
Xmf\Debugis your friend.
Output this when executed:
Clicking on the dump line opens it:
You can dump multiple variable in one line:
\Xmf\Debug::dump($counter, $output, $handler);
Need to take a look at your inputs?
How did we get here?
Always there, Xmf\Debug can be a handy tool to keep in mind.