在"异常被捕获"断点对话框窗口中有一个额外的“>'当你发现一个通用的异常烧焦?

在"异常被捕获"断点对话框窗口中有一个额外的“>'当你发现一个通用的异常烧焦?

问题描述:

我注意到一个奇怪的现象从一个WCF服务故障异常,并能够重新创建它:

I noticed something odd with a fault exception from a WCF service and was able to recreate it:

创建一个新的控制台应用程序,并添加这些类型的:

Create a new console app and add these 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 on the first catch the window will show like this:

在一般的异常被击中,你' LL得到这个窗口:

When the generic exception is hit, you'll get this window:

注意消息中的额外>字符。

Notice the extra > char in the message.

这是正常的和预期,或者说我报告?

Is this normal and expected, or something I report?

任何人都可以尝试复制这种对VS 2012 ?

Can anyone try to duplicate this on VS 2012 ?

我想这可能会或可能不会被固定在即将到来的版本,则:

I guess this may or may not get fixed in an upcoming release then:

发布Microsoft在2013年4月3日在上午11时29分感谢您报告此
的问题。我们会考虑在将来的版本中修复这个。谢谢,
Visual Studio调试器团队

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