simplifying debugging
<p>Is there a way to achieve the following?</p>

<pre><code>$myvar = 'x';
debug($myvar); 

// outputs the following 
// myvar value is x
</code></pre>

<p>Obviously, for this to happen,  the debug function needs to be able to get the variable name passed to it. </p>

<p>Is there a magic constant for that? 
And if there isn't, please recommend alternative ways that would simplify the debugging.</p>

<p>Of course, I'm aware of the option where you pass the variable name as a separate argument, </p>

<pre><code> debug('myvar',$myvar);
</code></pre>

<p>but my goal is exactly avoid doing that. </p>
