这个问题由来已久,却一直没有找到原因。大家都知道,VisualStudio的DebuggerVisualizers是一个非常方便的插件,可以帮助我们调试时查看Datatable视图,前阵子突然发现在查看时报错了,截图 如下:

VS2010Datatable查看器查看超时(Microsoft.VisualStudio.DebuggerVisualizers)

  详细信息里的内容是:

 1 有关调用实时(JIT)调试而不是此对话框的详细信息,
 2 请参见此消息的结尾。
 3 
 4 ************** 异常文本 **************
 5 System.Exception: 函数计算超时。
 6    在 Microsoft.VisualStudio.DebuggerVisualizers.DebugViewerShim.PrivateCallback.MaybeDeserializeAndThrowException(Byte[] data)
 7    在 Microsoft.VisualStudio.DebuggerVisualizers.DebugViewerShim.ManagedShim.DelegatedHost.CreateViewer(IntPtr hwnd, HostServicesHelper hsh, SafeProxyWrapper proxy)
 8 
 9 
10 ************** 已加载的程序集 **************
11 mscorlib
12     程序集版本:4.0.0.0
13     Win32 版本:4.0.30319.18444 built by: FX451RTMGDR
14     基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
15 ----------------------------------------
16 Microsoft.VisualStudio.Platform.AppDomainManager
17     程序集版本:12.0.0.0
18     Win32 版本:12.0.21005.1
19     基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Platform.AppDomainManager/v4.0_12.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Platform.AppDomainManager.dll
20 ----------------------------------------
21 System
22     程序集版本:4.0.0.0
23     Win32 版本:4.0.30319.18408 built by: FX451RTMGREL
24     基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
25 ----------------------------------------
26 System.Configuration
27     程序集版本:4.0.0.0
28     Win32 版本:4.0.30319.18408 built by: FX451RTMGREL
29     基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
30 ----------------------------------------
31 System.Xml
32     程序集版本:4.0.0.0
33     Win32 版本:4.0.30319.34234 built by: FX452RTMGDR
34     基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
35 ----------------------------------------
36 System.Windows.Forms
37     程序集版本:4.0.0.0
38     Win32 版本:4.0.30319.18408 built by: FX451RTMGREL
39     基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
40 ----------------------------------------
41 System.Drawing
42     程序集版本:4.0.0.0
43     Win32 版本:4.0.30319.18408 built by: FX451RTMGREL
44     基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
45 ----------------------------------------
46 Microsoft.VisualStudio.DebuggerVisualizers
47     程序集版本:12.0.0.0
48     Win32 版本:12.0.21005.1
49     基本代码:file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.DebuggerVisualizers/12.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.DebuggerVisualizers.dll
50 ----------------------------------------
51 System.Windows.Forms.resources
52     程序集版本:4.0.0.0
53     Win32 版本:4.0.30319.18408 built by: FX451RTMGREL
54     基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/System.Windows.Forms.resources.dll
55 ----------------------------------------
56 
57 ************** JIT 调试 **************
58 要启用实时(JIT)调试,
59 该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
60 jitDebugging 值。
61 编译应用程序时还必须启用
62 调试。
63 
64 例如:
65 
66 <configuration>
67     <system.windows.forms jitDebugging="true" />
68 </configuration>
69 
70 启用 JIT 调试后,任何未经处理的异常
71 都将被发送到在此计算机上注册的 JIT 调试器,
72 而不是由此对话框处理。
View Code

相关文章:

  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2021-11-17
  • 2021-10-18
  • 2021-08-26
猜你喜欢
  • 2021-04-13
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
  • 2022-02-25
  • 2022-12-23
相关资源
相似解决方案