5

I'm debugging a production service which is at rare instances is throwing AppDomainUnloadedException. The exception contains no stacktrace or any kind of useful information about why it happens. So want to attach windbg and only break when AppDomainUnloadedException is thrown and not any other clr exception.

Is this possible?

2
  • I don't know how to do it in windbg, but have recently done it with mdbg. See my blogpost: nickvane.blogspot.com/2011/07/… . Instead of using 'ca ex' you could use 'ca AppDomainUnloadedException' Commented Jul 27, 2011 at 12:26
  • Thanks, that worked for all other exception, except the one I was trying to catch. :( It does how ever gets caught by the UnhandledException handler but without a stacktrace or any other useful information. Commented Jul 28, 2011 at 14:20

1 Answer 1

8

You're look for the !soe command (Stop On Exception) syntax should be something like:

!soe System.AppDomainUnloadedException 1
Sign up to request clarification or add additional context in comments.

1 Comment

How can I revert the !soe command? I want to break again in all the exceptions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.