When using windbg, there is a way to break a specific CLR exception

I am debugging a production service that in rare cases throws an AppDomainUnloadedException. The exception does not contain stacktrace or any useful information on why this is happening. So you want to attach windbg and break only when you call AppDomainUnloadedException, and not in any other clr exception.

Is it possible?

+4
source share
1 answer

You are looking for the soe (Stop On Exception) command, which should look something like this:

!soe System.AppDomainUnloadedException 1 
+7
source

All Articles