使用键盘时,在 Visual Studio 2010 中调试 Silverlight 会冻结 [英] Debugging Silverlight in Visual Studio 2010 freezes when using keyboard

查看:30
本文介绍了使用键盘时,在 Visual Studio 2010 中调试 Silverlight 会冻结的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先我想避开等一下"的问题.

First I'd like to head off the "wait a minute" questions.

  • 是的,我已经阅读了关于 SO 及其他领域的所有标题和主题相似的帖子.
  • 是的,我使用的是最新版本的 SP1 以及可能与此问题相关的任何潜在修补程序.

所以,具体来说,这是我的问题:

So, with specificity, here is my problem:

当我调试 Silverlight 应用程序并遇到断点时,只要我使用鼠标,一切正常.我可以继续、步进、停止调试、禁用和启用断点,一切都很好——只要我用鼠标这样做.

When I'm debugging Silverlight applications and it hits a breakpoint, everything works just fine as long as I use the mouse. I can continue, step, stop debugging, disable and enable breakpoints all just fine -- as long as I do so with the mouse.

但是当我使用键盘时,Visual Studio 会冻结几秒钟,有时超过一分钟.这是键盘的任何用途.但过了一会儿,它开始正常工作,直到调试会话结束.但是下一个调试会话(无论我是否使用同一个 Casini 实例)它会做完全相同的事情.

But when I use the keyboard, Visual Studio freezes for a number of seconds, sometimes over a minute. This is any use of the keyboard. But after a short time, it starts to work just fine until that debugging session is over. But the next debugging session (regardless of whether I use the same instance of Casini or not) it will do exactly the same thing.

当我说任何键盘使用时,我是认真的.F5(继续)、Shift-F5(停止调试)、F10(跳过),以及在立即"窗口中键入甚至按 ALT 键以突出显示菜单.

When I say any keyboard use, I mean it. F5 (Continue), Shift-F5 (Stop Debugging), F10 (Step Over), as well as typing in the Immediate window or even hitting the ALT key to highlight the menu.

例如,如果我尝试在立即"窗口中键入一些内容,它会冻结大约 15 秒,然后显示第一个键并重复该模式大约 5 次,直到它释放为止,一切都很好.

For instance, if I try to type something in the Immediate window, it freezes for about 15 seconds and then shows the first key and repeats the pattern about 5 times until it releases and everything is just fine.

当我说冻结"时,我说的不仅仅是 Visual Studio,而是它挂起整个操作系统,除了我移动鼠标的能力.即便如此,鼠标光标仍然保持它冻结时的状态,而不管它结束了哪个程序,例如文本选择器.

When I say "freezes" I'm not talking just Visual Studio but it hangs the entire operating system except for my ability to move the mouse. Even so, the mouse cursor remains what it was when it froze regardless of the program it's over, such as the text selector.

它只发生在 Silverlight 上,我使用哪个版本无关紧要.

It only happens with Silverlight and it doesn't matter which version I use.

这是我正在运行的:

  • Windows 7 Professional 64 位,包含所有最新更新,12 GB RAM 和1.5 TB 硬盘.
  • 包含所有最新更新的 Visual Studio 2010 Ultimate.

所有软件都是合法的,我已经尝试删除和/或禁用几乎所有可以删除或禁用的内容,包括扩展.我使用了 Sysinternals 的 Process Explorer 来终止或停止我所能做的一切.我还在一个非常简单的 Silverlight 应用程序上进行了尝试,该应用程序只有一行无法访问任何内容的代码.

All software is legit and I've already tried removing and/or disabling just about everything that can be removed or disabled, including extensions. I've used Process Explorer from Sysinternals to kill or stop everything I can. I've also tried it on a very simple Silverlight application with nothing more than one line of code that doesn't access anything.

忘了提到我也没有让它加载超出通常会加载的仅我的代码"之外的符号,而且我也尝试了我能想到的所有调试设置.Intellitrace 也被关闭(因为我有 Ultimate),但这也没什么区别.

Forgot to mention that I also don't have it loading symbols beyond the "Just My Code" that it normally would and I've tried every debug setting that I can think of as well. And Intellitrace is also turned off (since I do have Ultimate), but that makes no difference either.

更新(11/18):它变得越来越奇怪.我确定只有当 Visual Studio 具有焦点时才会发生临时冻结.当 VS(在超级简单的 Silverlight 应用程序期间)进入调试模式时,任何键盘访问都会导致相同的效果.所以,与我在评论中的断言相反,它似乎必须(以某种方式)与我的 Windows 设置相关(至少部分地),但我无法理解如何.如果其他程序在冻结时正在做某事,则延迟会更长(这对症状有一定的意义).我仍然完全不知所措.

有人有任何想法或以前看过吗?真的很郁闷.

Anyone have any ideas or see this before? It's really frustrating.

推荐答案

我解决了这个问题.

原来是 LastPass 工具栏.这是一个非常方便的东西,我已经使用它多年没有问题.是的,是的,工具栏是邪恶的,我明白了.:)

It turned out to be the LastPass toolbar. It's a very handy thing and I've used it for years without issue. Yeah, yeah, toolbars are evil, I get it. :)

在 IE 中禁用它完全解决了问题.我仍然可以在 FF(这是我的主要浏览器,除了我使用 IE 的浏览器)中使用它,并且一切正常.

Disabling it in IE fixed the problem completely. I can still use it in FF (which is my main browser anyway except for working for which I use IE) and everything works fine.

即便如此,对我来说,工具栏只有在 SL 调试时才有效,这对我来说很奇怪.我在 ASP.Net 调试方面没有问题,当 SL 应用程序实际运行时我也没有任何问题,只有在我遇到断点并在前 15 秒左右内敲击某个键时才出现问题.

Even so, it's bizarre to me that the toolbar would only have an effect when SL debugs. I didn't have an issue with ASP.Net debugging and I didn't any issues when the SL app was actually running, only when I hit a breakpoint AND hit a key within the first 15 seconds or so.

无论如何,问题已解决,感谢您的建议.

In any case, problem solved and thanks for your suggestions.

这篇关于使用键盘时,在 Visual Studio 2010 中调试 Silverlight 会冻结的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆