I have a static class with no static constructor, but many static members. I throw a TypeInitializationException when the class is first used.
I am breaking on CLR exceptions, and I have disabled 'Just My Code'.
The problem is that I only get this exception when this class is first used; I don't break at the failing static field initializer. I could certainly remove the static members until I find the culprit, but is there an easier way?
Does anyone have any tips for debugging static field initializations?