Hacker News new | past | comments | ask | show | jobs | submit login

Visual 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-Breakpo...

So the hit count is definitely stored.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: