You are not able to single out an exception thrown at a specific place in your code. You are however able to disable exeptions of a specific type.
If your own code throws the exception in question, i would make it a custom exception, derived from whatever fits, and then disable debug breaking on this derived type.
Disabling system exeptions as NullReferenceException will affect the entire system, which of course isnt desirable during development.
Note that there is two kinds of break-behaviors for exceptions:
- Thrown: If selected, breaks as soon as a exception of this type is thrown
- User-unhandled: If selected, breaks only if the exception, of this type, is not handled by a try/catch.
You could remove the check in 'Thrown' for the NullReferenceException which will give you the benefit of not breaking each time your system passes the line in question in your code, but still breaking if you have some unhandled NullReference expection occuring in other parts of the system.