I don't understand why I can not use the debugger. I did follow the instruction I've found in forum, but it couldn't help, because my the debugger can not be chosen. I attach a photo of my screen here. Hope you can help me solve this issue.
[attachment deleted by admin]
Do you have a project, or just a single-file ?
In the second case it will not work.
Use the wizard to create a project (it seems to be console project in your case) and change the sourcecode to your needs.
Oh, it works. Thank you very much :D. Just a little thought, why didn't code::block supports debugging feature for just a single file...?