User forums > Help
Debugger doesn't stop
oBFusCATed:
--- Quote ---Make sure that the project is compiled with the -g (debugging symbols) compiler option on, and the -s (strip symbols) option off. This ensures that the executable has debug symbols included.
Compiler optimization switches should be turned off, stripping symbols (-s) must be turned off.
Keep in mind that you may have to re-build your project as up-to-date object files might not be re-compiled with -g otherwise.
--- End quote ---
Also read this: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F and verify that the correct options are passed to the compiler
Mubisco:
Thanks!!
It's solved now. Finally it debugs OK
I have to reinstall Codeblocks directly on C: (out of the Program Files folder). I guess the (x86) suffix - i'm running it on 64 bits - was the reason for this.
Many thanks again for the help, and sorry for the noob question.
Xan.
elieserdejesus:
Hello! I had the same problem, but found a different solution.
My C:: B was also not running the break points. My project was stored in a directory with many space characters (whitespaces) in the name. The name of the directory where the project was being stored was something like: "Project Test - Version two - before pointer fix problems" (just a example).
I changed the directory name for "Project" (no whitespaces, no extra words) and the break points were ok.
My conclusion: it is possible that the debugger does not handle spaces in directory name.
Sorry for bad English! :)
ollydbg:
I guess you use Windows.
Yes, the gdb does not works quite well with file path containing spaces(so does gcc).
So, avoid using spaces in the full file path!!!
Navigation
[0] Message Index
[*] Previous page
Go to full version