title: Tracking Static Constructor Execution
body: <p>I'm running into a problem here where a static constructor of one of my classes is being called before it should be. (I.e, DI/IoC isn't set up and it's getting null/exceptions back from the service locator).</p>
  
  <p>I unfortunately don't have a lot of control over the static constructor, don't ask me why it's relying on DI/IoC to be set up, but it is.</p>
  
  <p>In my app, nothing should be referencing this class static or otherwise before my IoC is ready to go, but the static constructor is executing anyway.</p>
  
  <p>Is there an easy way to determine what line caused the constructor to execute? <strong>Note: I cannot breakpoint in the <code>static constructor</code> because this is all happening before the remote debugger for ASP.NET can attach to the web server (in Global.asax.cs)</strong></p>