User forums > Using Code::Blocks
[RESOLVED] Debug->Start proceeds without stopping at the breakpoints
const451:
Hello,
When I do Debug->Start it proceeds without stopping at the breakpoints. I am running CB on Linux with g++. I am using own makefiles and I did build with -g option.
Any suggestions how to fix this!
Thanks in advance.
oBFusCATed:
You have to check if you have added strip or -s, this strips the symbols and reverts the -g option.
Also what is the debugger's debug log?
const451:
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: /home/const/Projects/zCB/
Adding source dir: /home/const/Projects/zCB/
Changing directory to: ../zCB
Adding file: bktest
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2
No line 138 in file "bktest.cpp".
No line 125 in file "bktest.cpp".
Program exited normally.
Debugger finished with status 0
I have to say by bktest.cpp file has only 120 lines, I do not know why it's complaining about lines 125 and 138.
const451:
--- Quote from: oBFusCATed on September 04, 2012, 07:46:49 pm ---You have to check if you have added strip or -s, this strips the symbols and reverts the -g option.
--- End quote ---
Where do I check that? I certainly do not have those in my makefile.
oBFusCATed:
Probably broken gdb: http://stackoverflow.com/questions/7063466/gdb-keeps-producing-no-line-xx-in-file-error-even-though-the-file-has-the-lin
Or some marco hacks used in the code.
Does a simple hello world, non makefile project works?
--- Quote from: const451 on September 04, 2012, 07:54:30 pm ---Where do I check that? I certainly do not have those in my makefile.
--- End quote ---
In your log make is producing. If you don't have it in the makefile then you're fine.
Navigation
[0] Message Index
[#] Next page
Go to full version