How to do debuging in codeblocks? I've set few brakepoints and pressed debug/start but program doesn't stop on any of those brakepoints. What do I have to do in order for it to work?
Asked
Active
Viewed 2,595 times
1
-
Could you give us more information? What kind of OS and compiler are you using? – Zuljin Feb 24 '11 at 16:20
-
@Zuljin Windows 7 and GCC 4.5.1 – There is nothing we can do Feb 24 '11 at 18:59
-
Is your program compiled with debugging symbols? – greatwolf Mar 01 '11 at 00:49
-
@Victor and how can I check it? – There is nothing we can do Mar 01 '11 at 07:09
-
You can find it under project->build options-> under compiler settings and linker settings. Since you're using gcc, make sure 'Produce debugging symbols [-g]' is checked for your debug configuration. There are also some diagnostic messages C::B logs for gdb. If there's no debug symbols, it would be indicated there. – greatwolf Mar 01 '11 at 15:58
2 Answers
0
In codeblocks for your program to debug , it should be in an active project .
So:
- create a new project and
- add your program to the project
- Then you will see the red play symbol enabled to debug your program.

davejal
- 6,009
- 10
- 39
- 82

Sourav Kondapaka
- 53
- 1
- 3
0
i dont know if u solved it already but i had the same problem and just solved it!! i have searched a lot all over and eventually the problem was....
non ASCII chars on the project path !!
i had some hebrew letters on the path where my files are located !! i changed it to regular english letters and the debugger worked!!

danfromisrael
- 2,982
- 3
- 30
- 40