And what does the '5' stand for?

&debug( "\n\nFinished Updating res\n\n", 5);

Cheers,

Francisco.

Chris Ridd escribi�:

On 25/11/04 10:51 am, Francisco Jose Bernabe Pellicer <[EMAIL PROTECTED]>
wrote:



Hello everybody,

what's the function debug supposed to do? what does the second parameter
(a number) stand for?



It enables different levels of protocol debugging, which can be useful when trying to work out what sort of junk we're sending the server, or what junk the server's sending us :-)

The documentation for the debug method in the Net::LDAP manpage says:

---
debug ( VALUE )
   If "VALUE" is given the debug bit-value will be set. The previous
   value will be returned. Debug output will be sent to "STDERR". The
   bits of this value are:

   1   Show outgoing packets (using asn_hexdump).
   2   Show incoming packets (using asn_hexdump).
   4   Show outgoing packets (using asn_dump).
   8   Show incoming packets (using asn_dump).

   The default value is 0.
---

Cheers,

Chris







--
_______________________________________________________
Francisco Jos� Bernab� Pellicer
T�cnico de Sistemas Grid
Departamento de Sistemas/T�cnicos C.E.S.G.A
Centro de Supercomputaci�n de Galicia www.cesga.es
Avda. de Vigo s/n (Campus Sur)
15705 Santiago de Compostela (La Coru�a)
Spain





Reply via email to