Is it possible to have some sort of debug/release configurations that I can chose between so i can have some variables altered when compiling my project?

For example, alternate between database login variables or turn off some output debug variables.

Thanks