Silverlight调试不附加过程 [英] Silverlight debugging; not attaching process

查看:121
本文介绍了Silverlight调试不附加过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Google Chrome作为我的默认浏览器,但更喜欢使用Internet Explorer来调试Silverlight应用程序。因此,我设置了我的Web项目属性,并检查Silverlight调试器选项。

I use Google Chrome as my default browser but prefer to use Internet Explorer for debugging Silverlight applications. I therefore set my web project properties thus and check the Silverlight debugger option.

这个年龄很好,但是从休假回来之后,我发现运行silverlight的iexplore.exe进程不再附加到调试器,我必须手动附加它。当不调试我的应用程序,我可以检查调试|附加到Process ...对话框,看到没有iexplore.exe运行的实例。然后我点击F5并启动一个调试会话并再次查看,之后有两个实例,其中一个被附加,但不是一个运行Silverlight的实例。一旦我附加了另一个,调试工作正常,我可以点击断点,并没有问题的代码。

This has worked fine for ages but since returning from vacation I find that the iexplore.exe process running silverlight is no longer attached to the debugger and I must attach it manually. When not debugging my app I can check the Debug | Attach to Process... dialog and see that there are no instances of iexplore.exe running. Then I hit F5 and start a debug session and look again, after which there are two instances, one of which is attached, but not the one running Silverlight. Once I attach the other too, debugging works fine and I can hit breakpoints and step through the code with no problem.

任何想法,我错过了让调试器附加到正确的过程将不胜感激。

Any ideas on what I'm missing to get the debugger attaching to the correct process would be appreciated.

推荐答案

Chrome是我的默认操作系统浏览器,但我使用IE进行SL调试。

Chrome is my default OS browser, but I use IE for SL debugging.

我做的是在Visual Studio的解决方案视图中的托管Web项目中找到ASPX页面。右键单击该文件,然后选择使用浏览。您将看到一个对话框。从浏览器列表中选择IE,然后按设置为默认值按钮。然后我取消了此对话框。现在VS开始调试时使用IE!您需要撤消项目中的启动外部程序调试选项(切换回当前/特定页面)。

What I do is find the ASPX page in the hosting Web project in the solution view of Visual Studio. Right-click the file and select Browse With. You'll be presented with a dialog. Select IE from this list of Browsers and press the Set as Default button. I then cancel out of this dialog. Now when VS starts debugging it uses IE! You'll need to undo your "Start external program" debugging options in the project (switch back to Current/Specific Page).

VS有时会忘记此设置并将其切换回Chrome。只需重复此过程。

VS will occasionally "forget" this setting and switch it back to Chrome. Just repeat this process.

这篇关于Silverlight调试不附加过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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