If you’re debugging a react re-render for example where the error happens on the 7th re-render then having it pause with the debugger 7 times can be annoying.
I don’t know about react, but in similar situations in java I use conditional breakpoints. Sometimes going as far as introducing a temporary variable to do the count for me, and basing my condition on that.
If you’re debugging a react re-render for example where the error happens on the 7th re-render then having it pause with the debugger 7 times can be annoying.
You can do conditional breakpoints in a browser :)
Or even logpoints!
I don’t know about react, but in similar situations in java I use conditional breakpoints. Sometimes going as far as introducing a temporary variable to do the count for me, and basing my condition on that.