Re: Re: I need Help
| From: | Christoph Becker | Date: | Tue, 30 Dec 2014 00:21:25 +0000 |
| Subject: | Re: Re: I need Help | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-324188@lists.php.net to get a copy of this message | ||
Rolando Titiosky wrote:
> So, Any existing Debug systems do require me to insert external code? We
> Know about xdebug, but we have to alter the Source Code, so is the same as
> making a hand Debug ... We dont need a kind of xdebug because we can do the
> same thing by our hands.
Not necessarily. There are Xdebug integrations for many IDEs[1], which
do not require to alter the source code in any way, but do allow to walk
through the code during execution.
> We have already a php script that put into all php scripts in a directory,
> a few lines in the beginning and in the end of each source code into the
> directory, to understand the php flow: This script writes a Trace Log in a
> simple text way... But this method alter the Source Code...
To do something before and after the script execution without altering
the source code, you can use the auto_prepend_file[2] resp.
auto_append_file[3] ini.php directives.
[1] <http://xdebug.org/docs/remote#clients>
[2] <http://php.net/manual/en/ini.core.php#ini.auto-prepend-file>
[3] <http://php.net/manual/en/ini.core.php#ini.auto-append-file>
--
Christoph M. Becker