Visual Studio has this neat feature of popping up a message box whenever an exception is raised allowing you to break on it and inspect the program state even if the exception is theoretically caught later.
I would like to use something like this for logging purposes. Automatically log every exception that is being raised. This would be especially useful in cases where you raise an exception but it is caught in library code even though it should not have been.
Hence the question: Can it be done, if so, how?
Edit: Not sure if this was obvious enough: I do not want to write code to catch, log and rethrow all exceptions everywhere.