For conditional breakpoints, set a breakpoint as usual, then right click it and click condition.
You can write any boolean operation.
How to set conditional breakpoints in Visual Studio?
Seyed Hamed Vahedi
Fri, 18 November, 2022