Re: New function proposal
| From: | Tom Worster | Date: | Sat, 10 Oct 2015 14:30:01 +0000 |
| Subject: | Re: New function proposal | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-88737@lists.php.net to get a copy of this message | ||
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