Page 1 of 1

How to test/trace execution of PHP scripts?

Posted: Sat Apr 07, 2012 3:10 am
by pstein
Sorry for this newbie question:

How can I easily test/trace an existing *.php script?

This should be done with a minimum of extra installation/configuration.

I can imagine that there is e.g. a wrapper script "trace.php" which does the job for me similar to

http://localhost/trace.php?testscript=myscript.php

After entering the URL above the trace wrapper script should automatically output the content of all relevant, next used variables BEFORE each command and then execute the next command before proceeding to the next command.

Is this somehow possible?

Thank you
Peter

Re: How to test/trace execution of PHP scripts?

Posted: Sat Apr 07, 2012 6:05 am
by Celauran
Sounds like you want xdebug