to debug a shared lib with ddd

Hi,
To debug a shared lib (I written it) with ddd, is it necessary to link
the executable with the debug version of the lib or is there other method?

thanks,
Alain.