PHPBuilder - Don't have a debugger installed?

RSS Twitter

Don't have a debugger installed?

by: Jonathan Gibb
February 15, 2008

If you don't have a debugger installed you will probably find yourself adding numerous echo, var_dump and die/exit commands as you chase through your code.

This function is a very simple but useful addition because it reduces the number of lines you need to add/remoe and also allows you to see basic type information about your data.

function di($in) {
	die ( var_dump ( $in ) );

Happy bug hunting!

Jonathan Gibb

Comment and Contribute

Your comment has been submitted and is pending approval.

Jonathan Gibb



(Maximum characters: 1200). You have characters left.