Re: How to debug MozLDAP code?

Mark Smith <[email protected]> Thu, 20 Aug 2009 10:51:31 -0400
Newsgroups gmane.comp.mozilla.devel.directory
Message-ID <[email protected]>
Xu, Qiang (FXSGSC) wrote:
> ...
> 65535 is 0xFFFF in hexdecimal, right? It seems not defined in the above macro. 
> 
> Have I missed anything?

I did not say to use a macro.  I said to use the value 65535.  As you 
probably realize, the debug levels are defined as bits so my goal was to 
match as many bits as possible.

If you want to, you can define your own macro and use it in your code, e.g.,

#define MY_LDAP_DEBUG_ALL 0xFFFF

Using 65535 / 0xFFFF that will cause all debugging messages to be 
included (LDAP_DEBUG_PLUGIN is not currently used in the SDK code).

-- 
Mark Smith
Pearl Crescent
http://pearlcrescent.com/