Re: Printing out or displaying for debugging [message #179849 is a reply to message #179836] |
Wed, 12 December 2012 00:14 |
SwissCheese
Messages: 17 Registered: December 2012
Karma:
|
Junior Member |
|
|
On 12/11/2012 10:59 AM, C wrote:
> What is a good way to see the values of a few variables for debugging?
> I cannot debug locally. I have to put the code on the server in the
> normal Internet site (which does not receive a lot of human visitors),
> so it would not hurt to display the values of some variables for a few
> minutes while I am debugging.
>
Another method is to throw them into comments within the output HTML, ie:
echo "<!--";
vardump($var)
printr($var)
etc...
echo "-->";
then comment out/remove that code when done. Just 'View Source...' to
see it.
--
Norman
Registered Linux user #461062
-Have you been to www.php.net yet?-
|
|
|