Transmission Line Noise

CtaScb 6 — Krumo

Mon, Sep 19, 2011

To put it sim­ply, Krumo is a replace­ment for print_r() and var_dump(). By def­i­n­i­tion Krumo is a debug­ging tool (ini­tially for PHP4/PHP5, now for PHP5only), which dis­plays struc­tured infor­ma­tion about any PHP variable.

A lot of devel­op­ers use print_r() and var_dump() in the means of debug­ging tools. Although they were intended to present human read­ble infor­ma­tion about a vari­able, we can all agree that in gen­eral they are not. Krumo is an alter­na­tive: it does the same job, but it presents the infor­ma­tion beau­ti­fied using CSS and DHTML.

Except the col­lapsi­ble DHTML tree built around the struc­ture of the dumped PHPvari­able, and the improved by the CSS looks, Krumo offers addi­tional use­ful features.