News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Breakpoint in a static library

Started by orefa, December 07, 2005, 07:15:08 PM

Previous topic - Next topic

orefa

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.

thomas

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."

orefa

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.