Use the Configuration Manager to check what the actual settings are for the Debug configuration – it’s at menu Build → Configuration Manager… – in case they are set to use Release:

Also, make sure the project is defining DEBUG correctly, and that “Optimize Code” is not checked:
