Author Topic: [RESOLVED] Debug->Start proceeds without stopping at the breakpoints  (Read 5131 times)

Offline const451

  • Multiple posting newcomer
  • *
  • Posts: 37
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.
« Last Edit: September 04, 2012, 09:32:35 pm by const451 »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Debug->Start proceeds without stopping at the breakpoints
« Reply #1 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.
Also what is the debugger's debug log?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline const451

  • Multiple posting newcomer
  • *
  • Posts: 37
Re: Debug->Start proceeds without stopping at the breakpoints
« Reply #2 on: September 04, 2012, 07:50:18 pm »
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.

Offline const451

  • Multiple posting newcomer
  • *
  • Posts: 37
Re: Debug->Start proceeds without stopping at the breakpoints
« Reply #3 on: September 04, 2012, 07:54:30 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Debug->Start proceeds without stopping at the breakpoints
« Reply #4 on: September 04, 2012, 07:55:51 pm »
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?

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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline const451

  • Multiple posting newcomer
  • *
  • Posts: 37
Re: Debug->Start proceeds without stopping at the breakpoints
« Reply #5 on: September 04, 2012, 08:04:37 pm »
Yes, hello world is alright. What can I try with my app?

I am reading the link you sent

Offline const451

  • Multiple posting newcomer
  • *
  • Posts: 37
Re: Debug->Start proceeds without stopping at the breakpoints
« Reply #6 on: September 04, 2012, 09:32:16 pm »
I closed IDE, re-opened it and now it works. I think it was something to do with the path. Thx for feedback.