Re: How to debug MozLDAP code?

Mark Smith <[email protected]> Wed, 19 Aug 2009 08:32:15 -0400
Newsgroups gmane.comp.mozilla.devel.directory
Message-ID <[email protected]>
Xu, Qiang (FXSGSC) wrote:
> I'd want to say that the debug mechanism is not fully functional in
> MozLDAP. If I use LDAP_DEBUG_ANY, the output from stderr is supposed to
> be more than when I use LDAP_DEBUG_TRACE. But the fact is just the opposite.
> 
> In contrast, when I use OpenLDAP utility ldapsearch with debug option
> -1 (LDAP_DEBUG_ANY is defined as -1 in OpenLDAP), I can get full log output.
> 
> Isn't something wrong with debug functionality in MozLDAP?

LDAP_DEBUG_ANY does not mean what you think it does in MozLDAP (although 
MozLDAP and OpenLDAP share common roots in the original University of 
Michigan LDAP implementation, they diverged many years ago).  To enable 
a lot of debugging output, use a value like 65535.

-- 
Mark Smith
Pearl Crescent, LLC