News for hackers. Stuff that matters.
Re:Analyzing the FBI’s Explanation of How They Located Silk ... by BadDev on Sunday September 07, 2014 @05:48PM (#8282539)
Why is using var_dump debugging bad practice? Or is he insinuating that using var_dump while testing on a live site is bad practice?
Re:Analyzing the FBI’s Explanation of How They Located Silk ... by girvo on Sunday September 07, 2014 @07:40PM (#8282826)
With XDebug and proper breakpoints (or HHVM's debugger) I don't see any need to do var_dump debugging these days. Far more powerful to have an XDebug client like Codebug drop you into a REPL at your breakpoint so you can explore what's gone wrong.
Re:Analyzing the FBI’s Explanation of How They Located Silk ... by cookiecaper on Sunday September 07, 2014 @10:07PM (#8283138)
I think he infers that both are bad practice, but for the record I don't think there's anything wrong with var_dump debugging. Sure, a real interactive debugger is nicer, but it can be a pain to set up with PHP (I know, having set these up several times). Print-based debugging is fine as long as you don't expose sensitive information to end users.
Re:Analyzing the FBI’s Explanation of How They Located Silk ... by girvo on Tuesday September 09, 2014 @03:24AM (#8289100)
Difficult to set up? I disagree, Xdebug with connectback is amazingly easy to set up in a Linux VM! On windows, yes, it's hard, but Linux and OS X its very simple nowadays. I should write blog post on how to do it (having done it dozens of times over the past 6 months)
Re:Analyzing the FBI’s Explanation of How They Located Silk ... by davis on Sunday September 07, 2014 @06:05PM (#8282585)
Yeah, I'm pretty certain that he means using var_dump on a live server (especially of $_SERVER) is incredibly dumb.
Re:Analyzing the FBI’s Explanation of How They Located Silk ... by wcummings on Sunday September 07, 2014 @06:08PM (#8282604)
It's definitely bad practice on a live server, and frankly its a pretty painful way to debug PHP, at least without xdebug.
Re:Analyzing the FBI’s Explanation of How They Located Silk ... by brianzelip on Sunday September 07, 2014 @06:04PM (#8282582)
He is saying using `var_dump` on a live server is a bad practice.
Re:Analyzing the FBI’s Explanation of How They Located Silk ... by RenierZA on Monday September 08, 2014 @06:58AM (#8284145)
I'm also pretty sure that was print_r not var_dump.