1

使用 Visual Studio 调试 Silverlight 3 或 4 应用程序时,当我关闭浏览器窗口时,调试会话停止。在 VS 2008、2010 和 2012 中确实如此。

使用 Silverlight 5 运行时,我的调试会话在我关闭浏览器窗口后保持打开状态,我必须明确停止调试。

我用过的 IE8 和 IE9 遇到了同样的行为。

任何人都知道这是为什么以及如何恢复到原来的行为?

4

1 回答 1

0

I run into this kinda problems all the time. Worse if IE does not clear cache and still loading old version of XAP even if you made a small change in code. So the solution I found it to install Fiddler2 run it with VS and everytime I start debugging (or even in the middle of debugging) I switch to Fiddler2 and press Ctrl+Shift+X (Clear cache). This action guarantee to clear cache and load IE with actual SL app that you debugging. May be there's a way to automate it but it suits me for now...

Is this was helpful for you ?

于 2012-09-06T07:26:42.760 回答