Debuging linux dedicated server

Hello,
We are running many Linux dedicated server instances for our online session-based game.
Is there any way to debug it under Linux? Now we build it with clang toolchain on Windows. Maybe we should build it on Linux natively?