In usual sense, 'debug' and 'release' are not environments, they are targets. If you want to distinguish 'debug' and 'release' targets for a project, you can insert a target specific define in menu 'project->build options->compiler settings tab->#defines tab', be sure to select the correct target from the tree to the left. Then you can use these defines inside your code. If you're asking for something else please elaborate.