如何使Visual Studio调试器可视化程序不会超时? [英] How to keep Visual Studio debugger visualizers from timing out?
问题描述
objectProvider.GetObject反序列化对象时,我得到了一个超时错误()
System.Exception:功能评估超时。
在Microsoft.VisualStudio.DebuggerVisualizers.DebugViewerShim.PrivateCallback.MaybeDeserializeAndThrowException(Byte [] data)
超时发生相当快(即使我点击可视化图标大约一秒钟),尽管我的其他一些可视化工具也能正常工作,即使是大量数据对象显示的时间要长得多(5-10秒) t超时。
我已经制定了自定义对象源,以将序列化限制为我需要显示的字段。还有什么可以让数据反序列化没有超时?
HKEY_CURRENT_USER \Software\Microsoft\VisualStudio\9.0\Debugger
我认为这没有记录,但您可以尝试在上述注册表项中更改一些超时,然后重新启动Visual Studio。
I've successfully made several Visual Studio debugger visualizers, and they're working very well, except that on some objects I get a time out error when I try to deserialize the object with objectProvider.GetObject()
System.Exception: Function evaluation timed out.
at Microsoft.VisualStudio.DebuggerVisualizers.DebugViewerShim.PrivateCallback.MaybeDeserializeAndThrowException(Byte[] data)
The time out happens rather quickly (maybe about a second after I click on the visualizer icon), even though some of my other visualizers work fine even with large data objects that much longer to display (5-10 seconds) and still don't timeout.
I've already made a custom object source to limit the serialization to the fields I need to display. What else can I do to get the data to deserialize without timing out?
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Debugger
I think this is not documented, but you can try changing some of the Timeouts in the above registry key, and restart Visual Studio.
这篇关于如何使Visual Studio调试器可视化程序不会超时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!