My most used for PHP / Symfony development are:
ecd (echo dump die): echo '<pre>'; \Doctrine\Common\Util\Debug::dump($END$); exit(__FILE__ . ' on Line ' . __LINE__);
echo '<pre>'; \Doctrine\Common\Util\Debug::dump($END$); exit(__FILE__ . ' on Line ' . __LINE__);
vdd (var dump die): var_dump($END$); exit(__FILE__ . ' on Line ' . __LINE__);
var_dump($END$); exit(__FILE__ . ' on Line ' . __LINE__);
pdd (print dump die): echo '<pre>'; print_r($END$); exit(__FILE__ . ' on Line ' . __LINE__);
echo '<pre>'; print_r($END$); exit(__FILE__ . ' on Line ' . __LINE__);
When i need to debug they are big timesavers!
I like the inclusion of line numbers. Might steal that.
Yeah I was doing that:
var_dump($whatIsHere); die;
Useful for debugging.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
My most used for PHP / Symfony development are:
ecd (echo dump die):
echo '<pre>';
\Doctrine\Common\Util\Debug::dump($END$);
exit(__FILE__ . ' on Line ' . __LINE__);
vdd (var dump die):
var_dump($END$);
exit(__FILE__ . ' on Line ' . __LINE__);
pdd (print dump die):
echo '<pre>';
print_r($END$);
exit(__FILE__ . ' on Line ' . __LINE__);
When i need to debug they are big timesavers!
I like the inclusion of line numbers. Might steal that.
Yeah I was doing that:
Useful for debugging.