RE: How to debug MozLDAP code?
"Xu, Qiang (FXSGSC)" <[email protected]> Wed, 19 Aug 2009 10:27:53 +0800
| Newsgroups | gmane.comp.mozilla.devel.directory |
|---|---|
| Message-ID | <D8C9BC7FFCF8154FB7141EB8DB609C172E71DD4443@SGPAPHQ-EXSCC01.dc01.fujixerox.net> |
> -----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