Re: Printing out or displaying for debugging [message #179841 is a reply to message #179836] |
Tue, 11 December 2012 17:16 |
Martin Leese
Messages: 23 Registered: June 2012
Karma:
|
Junior Member |
|
|
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.
What I typically do is make a copy of the
webpage and call it TestSomething.php. You
can then do whatever you want with the
knowledge that nobody else will visit the
page.
You can then display variables using:
<?php echo $a_variable; ?>
--
Regards,
Martin Leese
E-mail: please(at)see(dot)Web(dot)for(dot)e-mail(dot)INVALID
Web: http://members.tripod.com/martin_leese/
|
|
|