Wish: conditional break for Debug


Well-Known Member
Licensed User
Something like:

If A = B Then Stop

This isn't urgent, since I'm now using

If A = B Then MsgBox("Stop on line ####","")

but then I have to find the line.

(The reason is that if I have to put a break point into a sub that gets called 100 times and I'm only interested in breaking under certain conditions, I have to sit there pressing F5 100 times until the conditions come up.)


Well-Known Member
Licensed User
It just dawned on me this morning that instead of

If A = B Then MsgBox("Stop","")

I could put

If A = B Then 
end if

and put a break point on the MsgBox line to get a conditional break.