![]() |
![]() |
|
Current Projects: PHP on XP Guide — NFO Viewer — Easy Reflections — Photon Storm — HotWire — FileGlider
Thursday, February 9. 2006dBug - var_dump with style!Trackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
dBug looks nice but from practical point of view its ballast. I prefer Xdebug (http://www.xdebug.org/), no additional includes to worry about and var_dump will provide a nice enaough output if Xdebug is installed.
regards,
iges.
#1
on
2006-02-10 12:05
I use NuSphere's dbg integrated with PhpED (http://www.nusphere.com). Xdebug is also nice. Printing out the variables is certainly a way for debugging and probably cheap one too, however, how would you debug a web service together with the client sending SOAP requests to it? I think there are certain limitations to echo/print type of debugging or at least at some point it becomes prohibitevely slow.
#1.1
on
2006-02-10 17:15
Another utility is http://www.debugconsole.de/
#2
on
2006-02-10 19:32
I personally use my own debugging function:
function d($dump){
print "";
var_dump($dump);
print "";
}
Simple and easy to call. You get used to deciphering var_dumps after a while. PHPEd also tends to pick up some errors for me.
There's also the PEAR::Var_Dump class (http://pear.php.net/package/Var_Dump/), that can produce different kinds of output (table, text, XML, (X)HTML, ...)
The output is basically the same, it just lacks the pretty MySQL result set display...
Very useful tool. I am already using it my apps. I recommend this to everyone that needs a better var_dump
Check out Krumo - it is open-source, it's free and it offers a very nice and graceful way to dump your data. It is skinnable, it has DHMTL tree which takes less space, it can be used for both PHP4 and PHP5. Share if you have any ideas about improving it :)
The author does not allow comments to this entry
|
My AS3 Blog
Photon Storm Great PHP links
C7Y PHP Podcast CorePHP is hosted by |