FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Printing out or displaying for debugging
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Printing out or displaying for debugging [message #179850 is a reply to message #179849] Wed, 12 December 2012 06:18 Go to previous message
Simon is currently offline  Simon
Messages: 29
Registered: February 2011
Karma:
Junior Member
>
> echo "<!--";
> vardump($var)
> printr($var)
> etc...
> echo "-->";
>
> then comment out/remove that code when done. Just 'View Source...' to
> see it.

Unless $var contains html code, (maybe what the OP is trying to debug in
the first place), and that could end up causing a whole lot of mess,
(making it more difficult to debug).

A local site, is a far better option.
I prefer to install php+Apache manually but that's just a mater of choice.

Otherwise, a carbon copy of the page with the debug code on another page
is a better/safe/prettier? option.

Simon
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: When is it possible for $_SERVER['SERVER_NAME'] to contain something other than the URL which actvated the script?
Next Topic: Re: Converting file from word.doc to pdf...
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 09:55:55 GMT 2024

Total time taken to generate the page: 0.04823 seconds