It is trying to protect you there, but I agree it is a little bit too persnickety, especially when you are not in an active debugging session. I'll relax that code a bit. The worst that can happen is that you set a breakpoint in a totally non-relevant file (like an HTML document) when debugging C++ and are left wondering why the breakpoint never gets hit.