Debug application compiled with clang

I have switched to clang 12 and built an application with debug info but Debugger does not seem to see it. I have also explicitly tried with the option -gdwarf-4 to no avail. The executable seems to have debug symbols due to its size.
GCC works flawlessly without explicit flags.
What am I missing?