First time here? Check out the FAQ!
1

Uninterrupted breakpoint hit counter

Today I was debugging a package that was parsing through a list (~150 items) that conditionally did something. It was acting up and I was trying to determine how many times a particular function was being called. It's trivial to put a breakpoint at the right place, and I see the "hits" column in the breakpoint panel. That's all well and good, but I need to mash the F5 button many dozens of times on each debug iteration and that's tedious. The "Ignores" feature of breakpoints unfortunately doesn't increment the hit counter. I could introduce a counter into the code, for sure, but it seems like Wing has everything I need with the exception of allowing me to not stop at a breakpoint but just count the number of times it was encountered.

Could this be a future feature? The introduction of a "hitcounter" type of breakpoint or watch?

Thanks, Anthony.

AnthonyFloyd's avatar
21
AnthonyFloyd
asked 2025-01-17 16:14:56 -0600
Wingware Admin's avatar
241
Wingware Admin
updated 2025-01-20 08:13:42 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

It does seem like we should just increment the hit count also when the breakpoint is reached but ignored. Obviously if you can estimate the number of hits you could set the ignore count on the breakpoint and add that to the hit count shown, but this has limited utility so for now I'd probably just alter the code in cases like this so it has a count available. Thanks for the suggestion!

Wingware Admin's avatar
241
Wingware Admin
answered 2025-01-20 08:13:32 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer