CodeBlocks has a debugger. The problem is that there is not any mistake at the code such as a syntax error. I think it has to do with the functionality of the program. When you press run, it starts normally and then it crushes without doing anything.
Well, maybe I didn't explained it correctly. When I press the run button it shows the classic Windows error that the program stopped working and I have to press close program. At the compiler it just says: Process terminated with status -1073741510. I searched it, but I didn't found any answers on what does it mean.