Code::Blocks Forums

User forums => Help => Topic started by: orefa on December 07, 2005, 07:15:08 pm

Title: Breakpoint in a static library
Post by: orefa 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.
Title: Re: Breakpoint in a static library
Post by: thomas 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).
Title: Re: Breakpoint in a static library
Post by: orefa 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.