Author Topic: Breakpoint in a static library  (Read 4046 times)

Offline orefa

  • Multiple posting newcomer
  • *
  • Posts: 102
Breakpoint in a static library
« on: December 07, 2005, 07:15:08 pm »
Programming under Windows, I tried to set a breakpoint in a static library that I link to my program. The debugger appears to ignore it. Is it possible to do this at all? I am able to jump through all the library code but just not break anywhere, maybe due to technical limitations of the debugger, or maybe something else I have not identified yet.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Breakpoint in a static library
« Reply #1 on: December 07, 2005, 07:27:27 pm »
If you have a recent build of Code::Blocks (newer than 2-3 weeks), this should actually work really fine.
I haven't ever tried myself, but it reportedly works by simply setting the breakpoint anywhere and starting (one exception: breakpoints inside constructors in dlls don't work yet).
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline orefa

  • Multiple posting newcomer
  • *
  • Posts: 102
Re: Breakpoint in a static library
« Reply #2 on: December 07, 2005, 07:59:08 pm »
Thanks for the info Thomas. I use RC2 which I think is older than that so I'll live with it for now. I'll try again after the next release.