You can write a sed or awk or perl script that will automatically remove
your debug statements as long as they follow some form of convention.
You could also write a form of preprocessor in this way that would also
include files, perform substitutions, etc if you had the time.
I have a sed scr
[snip]
I have a large PHP application that has a ton of statements like the
first
email for catching problems. I would like to 'automatically' remove them
before I ship the code to eliminate the extra size. I can do it in C,
C++,
VB but I don't know if it can be done in PHP.
[/snip]
Whoever create
[snip]
If PHP is interpreted, then the debug code is always there. If it's
compiled, you 'should' be able to remove it with a pre-processor. Does
PHP
have a pre-processor or am I stuck with the bloated code?
[/snip]
Are you working with PHP source code? What are you doing Sparky?
--
PHP General M
[snip]
Well, I guess I mean the php 'interpreter'.
[/snip]
You mean that the 'interpreter' or 'compiler' adds code to your code?
Are you by some chance using Dreamweaver?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Aye, PHP is compiled by the executable, nothing else- what are you using?
- Original Message -
From: Robin Kopetzky
To: PHP General
Sent: Monday, January 19, 2004 10:32 AM
Subject: [PHP] Debug code
Good morning!
Is there any way to keep the compiler from adding 'debug co
[snip]
Is there any way to keep the compiler from adding 'debug code'? Example:
if ($b_debug)
{
echo ...
}
Just trying to eliminate code bloat.
[/snip]
Which 'compiler' added debug code?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vi
6 matches
Mail list logo