Sponsored by Norton 2010
Cybercrime makes more money than illegal drugs. view!
everyclickmatters.com - See the top masterminds behind the biggest cyberscams ever—and what they cost us all.
40 Comments
- Nobiting, on 07/11/2009, -2/+18***** IE
- selphishnerd, on 07/12/2009, -1/+15Neat, but I'm still going to use print_r() 95% of the time.
- valkhorn, on 07/12/2009, -1/+15The best way to run PHP is on a LAMP environment with the error_log function and error logging on for mysql and php. Then you can ob all the output to the error log when you need to in a couple of lines. The thing I don't like about FirePHP is that it's a lot of extra work for rudimentary debugging - when you can get exactly what you need from just learning how to output certain things to see what's going on. Even debugging complex objects can be done this way.
Then again, I'm old school. - StigNordas, on 07/11/2009, -2/+15Nicely written intro to FirePHP, much easier logging than other tools.
- foltaggio, on 07/12/2009, -1/+13I love LAMP.
- yifanlu94, on 07/12/2009, -1/+13Finally, I don't have put echo "1"; echo "2"; etc throughout the code to find where the ***** the bug is.
- eagles7977, on 07/11/2009, -0/+8The Ecplise debugger tool for Zend is great, it'll save you a lot of time if you use that framework. http://www.zend.com/en/community/pdt
- netneutrality, on 07/12/2009, -0/+5Writing extensions for Internet Explorer is much more difficult. That's why the best extensions are for Firefox.
- ThomasHardy, on 07/11/2009, -3/+8Really good stuff, going to have to give this a go it will save me a lot of time!
- falser, on 07/13/2009, -1/+6But this is only useful for programmers who make errors.
- jaygeeze, on 07/12/2009, -2/+5I second the motion.
- ThatGeek, on 07/12/2009, -1/+4thats disgusting, its got all of those viruses and stuff.
- Osmose1000, on 07/12/2009, -0/+3FirePHP looks cool, but for serious PHP debugging, XDebug is amazing. I use it with Eclipse PDT, and being able to set breakpoints and step through a PHP script is awesome.
- andreusboy, on 07/12/2009, -1/+4You said a bad word. <: o
- selphishnerd, on 07/23/2009, -0/+2I did 3 years of ASP.NET, and it is much more of a headache than PHP.
- schwarzenneger, on 08/03/2009, -0/+2Agreed!
- spidur1, on 07/12/2009, -0/+2I'm no MS fanboy, I just think the above method of debugging seems like a head ache to me as someone who programs in .net for living. I am glad there is some competition for MS. I got a laptop with Vista installed but I'm rocking Ubuntu as I post this because it is my operating system of choice when I am just surfing the web. That being said, I don't know much about PHP because I have a well paying, low stress, rewarding job as a .net developer. In my local job market .net guys get paid pretty well so I have no reason to really learn PHP.
- francodacosta, on 07/12/2009, -0/+1What I like about firebug is that if I need to debug the code again, I can activate it with one line of code, I do not need to uncomment all the debug statements or write them again
- shawncplus, on 07/12/2009, -0/+1fb($var) is a lot of extra work? Even at its worst you're typing FirePHP::getInstance(true)->trace(__FUNCTION__); which is still better than trying to swim through the output of print_r(debug_backtrace());
Also, you can add a wrapper around fb() for set_error_handler to log errors/warnings to FireBug instead of outputting them to the screen. - ezzalgames, on 07/12/2009, -0/+1nice addon.. first time im reading about FirePHP.. usefull tool..
- spartan8103, on 07/12/2009, -1/+2FirePHP is very nice to use as long as using the Net tab in Firebug does not immediately take up every last drop of RAM on your system (slight exaggeration -- my work computer really sucks).
- xkorbin, on 07/12/2009, -0/+1Someone who claims to the a developer, on digg, discussing IE for serverside debug? *facepalm*
- bl4k3r, on 07/13/2009, -0/+1I second that, what FirePHP does is acutally called "logging" and not "debugging".
- JernejL, on 07/12/2009, -1/+2If you want nice automatic error breaks and proper debugging with php you just use phped or other million IDEs made for it, so your asp.net argument is load of bs, and therefore declared FAIL.
- r00fus, on 07/12/2009, -1/+2It's worse on my mac than on my win laptop, sadly.
Yet I can't help it, FireBug and it's associated sub-plugins are worth it, and I still can't migrate to other browsers for development/debug.
I have however, moved my digg and other non-work browsing to Safari/Chrome (Mac/Win), so I can keep my FF image relatively responsive. - gamepr0, on 07/12/2009, -0/+1it's quite unclean to leave all the other stuff in the code...
- francodacosta, on 07/13/2009, -0/+1A programmer that doesn't make errors is one that do no coding at all
- linksus, on 07/28/2009, -0/+1TBH, i get the job done just by using tail -f /var/log/httpd/error_log
Seems to help me fix every error ive ever come across. - MtheoryX, on 07/12/2009, -1/+1I'll do that just as soon as I, or my clients, decide to pay for Windows server hosting and a Windows server license ;p
As nice as .NET is (I've built apps with it before), it's not the only game in town. - ell0bo, on 07/12/2009, -1/+1I've been working on my own PHP framework for the last 3 years or so. One of the main parts about it, is how it utilizes ajax for all communications, really only ever one page load. What this allows me to do is make every page a json object. I do an ob_start when the compiler script gets called, anything that gets echo'd out while the page gets built gets gathered up and sent to ->debug . When debug has data, I have it pop open a window all of that get outputted to, assuming the code in running in debug mode. Makes things easier, and i get to use var_dump.
- daimmo, on 09/08/2009, -0/+0I'm still trying to know which is the best debugger, if phped integrated one or xdebug with one of the many ide's like eclipse netbeans etc.
- francodacosta, on 07/12/2009, -0/+0There is no IE php debugger, and neither there be an IE
- lane4, on 07/15/2009, -0/+0me too.. laziness prevails.
- francodacosta, on 07/12/2009, -0/+0I think it's quite practical, and with a clever logging scheme it can replace comments
- JasonCox, on 07/12/2009, -2/+1Even IE has standards.
(see what I did there?) - richi9432, on 07/12/2009, -1/+0Thanks for the information
- epicgames, on 07/11/2009, -5/+3I've got to try this out. I currently already use Firebug.
- ilikedemoon, on 07/11/2009, -9/+3wamp server is already great for testing PHP.
- spidur1, on 07/12/2009, -10/+3No offense to anyone on the PHP side, but if you think this cool just give ASP.Net a try. IMO it is just so much easier to automatically break on errors (in server code or JavaScript). That method above looks like a major headache. Why would anyone want to code that way?
- inactive, on 07/11/2009, -17/+3biased article where is the IE php debugger article



What is Digg?
Browsing Digg on your phone just got easier with our enhancements to the