[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Compiling in debug mode

Michael Margulis wrote:

Hi all,

What compilation setting should be used to compile slapd in debug mode so it can be debugged with gdb?

Currently I can’t even set a breakpoint at main/ServiceMain.



Debug options are compiler dependent, not software dependent. Check your compiler's docs. Usually it's something like "-g" (I think it's some POSIX specification or so); gcc also has a -ggdb which I'm not sure how much it differs from plain "-g".


SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497