User forums > Using Code::Blocks
Breakpoints in headers don't work
(1/1)
ThundThund:
Hi everybody! I've been searching through the forum and I've found some threads talking about this issue, but none of them give any solution. My problem is the following:
If I put a breakpoint at any line of a header file (into inline methods for example), the debugger never stops there. However, if I put it in a CPP file, it does. How can I configure it to stop in both cases?
Using:
Windows7/CB 10.05/MinGW (GCC 4.4.1)/ GDB 6.8
Thanks in advance!
zabzonk:
Works for me. That's an old version of GDB you are running (and quite an old version of GCC) - I'd update with the latests and greatest from TDM at http://tdm-gcc.tdragon.net, and try using a recent CB nightly build.
oBFusCATed:
ThundThund: Try updating gdb to 7.2 or 7.3 first, gcc 4.4.1 is relatively new, so this can be upgraded as a second step.
ThundThund:
Wow! Thank you very much for your recommendation about TDM installer, it's great. I've updated my GCC + GDB versions on my CB installation and now breakpoints in header files work!
Thanks to you two.
Navigation
[0] Message Index
Go to full version