Quick question regarding debugging and PHP structure.
| From: | Ólafur Waage | Date: | Wed, 31 Dec 2008 20:41:31 +0000 |
| Subject: | Quick question regarding debugging and PHP structure. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-285307@lists.php.net to get a copy of this message | ||
Short: Is it possible to see the PHP code that is going to be
processed in whole?
Long: I love to see things visually, and while programming i create
all kinds of debugging variables i keep on the side for each
page/request.
I know this is possibly not possible since this has to be done from
either the Zend Engine or PHP itself, but if i could see a complete
output of all the code within my project that is used for a certain
execution.
Example:
I call index.php?page=10
index.php includes functions.php and classes.php
classes.php include page_classes.php if there is a $_GET["page"]
variable set and product_classes.php if there is a $_GET["product"]
variable set
What i would like to see is the linear output of what code is included
(so the data of functions.php, classes.php, then page_classes.php, and
then index.php (not product_classes.php since its not included within
this request)
This is most likely possible with some PHP code but I'm thinking of
trying to make sense of an old project i didn't create quickly and if
this is possible it would help a lot.