I use this function httprl_pr() as it does some nice things around print_r. Thought you might be interested in it.