Re: Debugging output
| From: | Stig S. Bakken | Date: | Wed, 06 Mar 2002 22:29:52 +0000 |
| Subject: | Re: Debugging output | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-4927@lists.php.net to get a copy of this message | ||
On Wed, 2002-03-06 at 15:16, Ulf Wendel wrote:
> Hi,
>
> are there any thoughs how to handle debugging messages - if at all?
> There're roughly three ways used to enable debugging informations in
> PEAR::SOAP. Every class uses (used) on of these ways:
>
> - setting a class variable
> - passing a degug=true argument to the constructor
> - setting a class variable based on a (undefined) global variable
IMHO an instance variable is the best way. I don't like cluttering
parameter lists with stuff like this, unless it is in an options array
or something like that (PEAR DB is doing this).
- Stig