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.
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?
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.
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.
Where do I check that? I certainly do not have those in my makefile.
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.
In your log make is producing. If you don't have it in the makefile then you're fine.
Yes, hello world is alright. What can I try with my app?
I am reading the link you sent
I closed IDE, re-opened it and now it works. I think it was something to do with the path. Thx for feedback.