[sudo-workers] Debugging Sudo

Todd C. Miller Todd.Miller at sudo.ws
Tue Mar 16 15:27:29 MDT 2021

On Wed, 17 Mar 2021 10:01:22 +1300, Andrew Rider wrote:

> How do you compile sudo with debugging symbols, I checked but couldn't find
> anything

The configure script will build sudo with debugging symbols by
default, but because it also enables optimization the line numbers
don't always line up.

To enable debugging symbols and also disable optimization you can
do something like:

    ./configure "CFLAGS=-g -O0"

Hope that helps.

 - todd

More information about the sudo-workers mailing list