![](/static/253f0d9b/assets/icons/icon-96x96.png)
![](https://fry.gs/pictrs/image/c6832070-8625-4688-b9e5-5d519541e092.png)
I had an issue where a client reported a crash on login. The exception and stack trace reported were very generic and lent no clues to the cause. I tried debugging but could not reproduce. I eventually figured out that the crash only happened for release (non-debug) builds that were obfuscated. I couldn’t find the troublesome code, so I figured out which release introduced the issue, then which commit, then went change by change until I was able to find the cause. It turned out to be a log message in a location that was completely unrelated to login. That exact log message was fine a few lines up. Other code worked fine in that location. For some unknown reason, having that log message in that specific location caused a crash in a completely different area of code.
To add onto this for anyone interested, the reason it and many businesses are incorporated in Delaware specifically is because it has a very pro-business legal and judicial system. Many businesses benefit from choosing that state over others and can find loopholes that allow them to save money (though there have been efforts to eliminate those loopholes in much of the country).
Phil Edwards recently released a video on this, which is how I found out about it: https://youtu.be/b4q99EuZF_Q
And this is the article that inspired the video: https://www.atlasobscura.com/places/corporation-trust-center