You can create separate config files for Debug and Release and have them merged at build. You should look into that.