On 10/8/15 11:05 AM, Mattias Gonzalez wrote:
I wanted to propose the "var_die($var)" functionallity.
My mates and i use a lot var_dump($var);die;
Since die() wont print an array just a string, i think it´ll be very useful.
It should do the var_dump($var);and die();
what do you think?
I think we easily achieve the same ends (efficiency in manual debugging)
without adding functions to PHP. For example, I have shortcuts in my
editor to insert the code to:
- dump with or without HTML formatting
- dump and die
- eval(\Psy\sh());
Even in difficult environments like live remote debugging in a term this
is usually feasible. Only very old editors can't cope (e.g. heirloom vi)
and then there are other options to send configured strings.
A carpenter knows how to use tools.
Tom
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php