4 ms·
I have yet to see a debugger that counts the times a breakpoint is hit. But maybe rr and it’s ilk do. I find it really valuable that I can just read a text fil
by hibbelig 5y ago
I have yet to see a debugger that counts the times a breakpoint is hit. But maybe rr and it’s ilk do.
I find it really valuable that I can just read a text file to spot some patterns even if I don’t know beforehand which patterns I’m looking for.
- nocturnial 5y agoVisual studio debugger can track hit counts. I would be _very_ surprised if gdb can't do it as well. With gdb you can even script what it needs to do when it hits a breakpoint. So even if it's not built-in, it's scriptable. edit: You can even trigger a break or commands if a breakpoint hits a certain number of times: https://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI-Breakpoint-Commands.html https://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI-Breakpo... So the hit count is definitely stored.