When you build a program in Debug mode, you have additional information which can be used while debugging to see what is going on in your program, the Release mode makes the compiled program with a smaller size.
To change it in CodeBlocks, you can just change the value in the 'Build Target' box. To run the debugger press F8 or click on the red icon with an arrow and sheet ( Debug / Continue ) or go via menu: Debug > Start