Re: How to debug MozLDAP code?

Anton Bobrov <[email protected]> Wed, 19 Aug 2009 13:19:17 +0200
Newsgroups gmane.comp.mozilla.devel.directory
Organization Sun Microsystems, Inc.
Message-ID <[email protected]>
if you think you can cleanup or improve it please feel free to do so and 
submit your patches accordingly.

Xu, Qiang (FXSGSC) wrote:
>> -----Original Message-----
>> From: 
>> [email protected]
>>  
>> [mailto:[email protected]
>> illa.org] On Behalf Of Anton Bobrov
>> Sent: Wednesday, August 19, 2009 9:57 AM
>> To: Xu, Qiang (FXSGSC)
>> Cc: [email protected]
>> Subject: Re: How to debug MozLDAP code?
>>
>>
>> you have various debug levels here
>>
>> http://mxr.mozilla.org/mozilla/source/directory/c-sdk/ldap/inc
>> lude/ldaplog.h#44
>>
>> if it is not enough you should be looking at enabling some 
>> sort of similar debug/tracing in libsasl and its plugins.
> 
> 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?
> 
> Thanks for your attention,
> Xu Qiang