Debugging Dedicated Server - Vriable Optimized Away

So how do you build the binary for the server exe file with debug mode then? I just chose “development server” configuration when I wanted to generate GameServer.exe, do I have to to use “DebugGame Server” configuration to generate it instead?