When EnableLibcwdDebug (CWDEBUG_DEBUG) is enabled, this turns on a lot of extra debugging output concerning the internal state of libcwd. This will not be usefull to you unless you manage to let the program coredump even before it reaches main().
Never, unless you are a developer of libcwd.
This is disabled by default. Use cmake -DEnableLibcwdDebug=ON -DEnableLibcwdDebugOutput=ON ... to enable it.