In CB, How can I do it?
The same, hence you may need to provide a compiler define "_DEBUG" accordingly (project build options -> target "debug" -> Compiler settings -> #defines).
If you setup 2 targets (release/debug) within your project you can select the target (just as in VC) and do what you want...
With regards, Morten.