logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: debug function: msg#00042

Subject: Re: debug function
On 25/11/04 10:51 am, Francisco Jose Bernabe Pellicer <fbernabe@xxxxxxxx>
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






Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>