" char when you encounter a general exception? I noticed something strange with...">

The Excluded Was Caught dialog box at the breakpoint has an extra ">" char when you encounter a general exception?

I noticed something strange with an exception from the WCF service and was able to recreate it:

Create a new console application and add the following types:

class TestException<T> : Exception where T : IError, new() { } interface IError { } class NewError : IError { } class NormalException : Exception { } 

In the Main function, add this code:

 static void Main(string[] args) { try { throw new NormalException(); } catch (NormalException ne) { //break point here } try { throw new TestException<NewError>(); } catch (TestException<NewError> ge) {//break point here } } 

When the break hits the first catch, the window will look like this:

Normal exception break point

When a general exception is thrown, you will get this window:

generic exception break point

Note the addition of> char in the post.

Is this normal and expected, or is something I'm reporting?

Can I try to duplicate this on VS 2012?

+4
source share
1 answer

I assume that this may or may not be fixed in an upcoming release, and then:

Posted by Microsoft on 3/3/2013 at 11:29 AM Thank you for reporting this issue. We will consider fixing this issue in a future version. Thanks, Visual Studio Debugger Team

0
source

All Articles