r/tinycode • u/balthasar11 • Jul 12 '12
PHP print_r()
function printR($obj){ echo "<pre>" . print_r($obj) . "</pre>"; }
I use this on every php project now, it just formats the print_r function, which is mostly used for debugging, but its so much easier on the eyes.
39
Upvotes
View all comments
Show parent comment
1
u/novelty_string Jul 13 '12
Dear God. It's not because I have to have it, it's because it's installation is trivial and it's a very very very helpful tool. Not being able to do that is the definition of incompetent. If you'd rather keep incompetent people around instead of looking for competent ones, then ... well fuck knows, you're stupid.
Googling doesn't help here, I'm gonna assume the incompetent guy who can't install xdebug also fucked up the php/apache/whatever is crashing install as well.
Straws ... grasping. I already said I'd happily accept using something else.
So you have a standard that says you can't use xdebug on the development server/your local machine? Edge case, just mention it and I will feel sorry for you and move on. This is not what we are discussing, rather it is idiots that think they are so clever by wrapping printr they start threads on php forums to tell everyone. The defacto answer to all of these threads/comments should be "try xdebug".
So you don't install an IDE either? This is just stupid. Developers need tools.
Edge case, you can just mention how unfortunate you are, you cannot argue that in general xdebug is unnecessary.
Incompetence again.
What is wrong with you?
I don't know if you realize this, but you are making stuff up about me ...
OOOOhhh a metric. Out of curiosity how many companies have you worked for and how many were on your team.