Replace print_r and var_dump with Krumo

Written on April 7, 2008 | by vinu |

Krumo

Here’s a good replacement for your standard print_r and var_dump in PHP, Krumo beautifies and expands the functionality required for PHP debugging:

To put it simply, Krumo is a replacement for print_r() and var_dump(). By definition Krumo is a debugging tool (now for PHP5 only), which displays structured information about any PHP variable.

A lot of developers use print_r() and var_dump() in the means of debugging tools. Although they were intended to present human readable information about a variable, we can all agree that in general they are not. Krumo is an alternative: it does the same job, but it presents the information beautified using CSS and DHTML.

Apart from dumping variable data, the current version of Krumo also supports the following :

  • Print Backtrace
  • List all included files
  • List all functions
  • List all declared classes
  • List all constants

Project Page: Krumo: Version 2.0 of print_r(); and var_dump();
Demo Page: http://kaloyan.info/krumo/demo/index.php

Bookmark and share: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • Digg
  • StumbleUpon
  • BlinkList
  • blogmarks
  • Furl
  • Slashdot
  • Spurl
  • Technorati
  • YahooMyWeb
  • DZone
  • e-mail
  • Facebook
  • Google
  • IndianPad
  • Live
  • Ma.gnolia
  • NewsVine
  • Reddit
  • TwitThis
  1. 4 Responses to “Replace print_r and var_dump with Krumo”

  2. By Dever on Apr 10, 2008 | Reply

    Looks a lot better .. i’ll give it a go these days.

  3. By debugger on Apr 10, 2008 | Reply

    Pretty, it’s like a poor man’s (no root priviledges) http://xdebug.org/docs/display.

  1. 2 Trackback(s)

  2. Apr 10, 2008: Vinu Thomas’ Blog: Replace print_r and var_dump with Krumo | Development Blog With Code Updates : Developercast.com
  3. Apr 17, 2008: css classes

Post a Comment

About Me

Here's my blog on stuff I keep finding on the Web. More

Want to subscribe?

 Subscribe in a reader Or, subscribe via email:
Enter your email address:  
On the Go? Get this on your Widsets: Add to my Widsets
Find entries :