Author Topic: Debug breakpoints  (Read 6313 times)

Offline Revvy

  • Multiple posting newcomer
  • *
  • Posts: 32
Debug breakpoints
« on: June 16, 2006, 02:56:02 am »
Up until pretty recently I've been able to use debug breakpoints without problems in the nightly builds.  However, recently any breakpoint I place is simply ignored by gdb, and I see the message "No source file named C:/dev/poke/pokepoke/gui.cpp." in the debug log.  Obviously this file exists, because I'm editing it when this message appears, but it happens with any source file that I try to debug (in the project I'm working on, at least.  I haven't tried others yet).
Cheers,
Revvy

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Debug breakpoints
« Reply #1 on: June 16, 2006, 11:26:13 am »
Hmmm... it works for me. Are you sure you haven't fogotten to add the debugger switches for compiling? Did you try a full re-compile?
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline ASJ

  • Multiple posting newcomer
  • *
  • Posts: 46
Re: Debug breakpoints
« Reply #2 on: June 16, 2006, 01:49:04 pm »
Besides what MortenMacFly mentons above,you might have to check out the gdb version (6.3?) and the precompiled header settings of your project. I came across a similar problems before and solved it by changing 1 of those two things (not sure which of the two actually made the difference...)) :D


Offline Revvy

  • Multiple posting newcomer
  • *
  • Posts: 32
Re: Debug breakpoints
« Reply #3 on: June 16, 2006, 11:40:09 pm »
Debugging switches are on, a full rebuild didn't make a difference and I'm using gdb 5.2.1.  I can't even find how to do anything with PCH, do I figure that's not affecting me.
Cheers,
Revvy

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Debug breakpoints
« Reply #4 on: June 16, 2006, 11:43:29 pm »
I'm using gdb 5.2.1.

Hello,

That's the problem. Download from MinGW GDB 6.3.

Best wishes,
Michael

Offline Revvy

  • Multiple posting newcomer
  • *
  • Posts: 32
Re: Debug breakpoints
« Reply #5 on: June 17, 2006, 03:16:55 pm »
I'm using gdb 5.2.1.

Hello,

That's the problem. Download from MinGW GDB 6.3.

Best wishes,
Michael

You're right, this did fix it.  Thanks a lot!  Now, could you explain the reason why? =P
Cheers,
Revvy

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Debug breakpoints
« Reply #6 on: June 18, 2006, 02:52:15 pm »
Now, could you explain the reason why? =P

Hello,

May be this post could give you some hints.

Best wishes,
Michael