MSVC: Link using /DEBUG:FULL in Debug and RelWithDebInfo
Per docs, /DEBUG defaults to /DEBUG:FASTLINK rather than /DEBUG:FULL starting on VS2017. Per those docs, FASTLINK PDBs can only be used on that machine: "You can only use this limited PDB to debug from the computer where the binary and its libraries were built."
So when building on a build server, /DEBUG (or /DEBUG:FASTLINK) on VS2017 or later is not particularly useful.
For both Debug and RelWithDebInfo, using /DEBUG:FULL rather than /DEBUG seems like the right option.