Silverlight项目不会进入调试模式
我在 VS 2010 中的 Silverlight 项目已停止进入调试模式。即使我在 Application 类的构造函数中设置断点,它也拒绝命中断点。我的其他项目仍然很好,但我找不到任何可能被意外更改以阻止我进行调试的设置。可能发生什么事?
My Silverlight project in VS 2010 has stopped entering debug mode. Even if I set a breakpoint in the constructor of the Application class, it refuses to hit any breakpoints. My other projects are still fine, but I can't find any setting that may have accidentally gotten changed to keep me from debugging. What could be going on?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
打开关联的 Web 项目的属性。选择网络选项卡。滚动到底部,并在“调试器”部分中确保选中“Silverlight”。
Open the properties of the associated Web Project. Select the Web Tab. Scroll to the bottom and in the "Debuggers" section make sure "Silverlight" is Checked.
不知道发生了什么,但这就是让它再次工作的原因。
我将其更改为Release模式,编译它。关闭并重新启动 VS,将其更改回调试模式,运行它并再次命中断点。
Not sure what happened, but here's what got it working again.
I changed it to Release mode, compiled it. Closed and restarted VS, changed it back to Debug mode, ran it and breakpoints hit again.
确保工具栏中的下拉菜单设置为“调试”而不是“发布”
Make sure the dropdown in the toolbar is set to Debug and not Release
在附加进程时,请附加 w3p.exe 和 Silverlight 的 iexplorer 实例,这应该可以解决您的问题。
While Attaching the process please attach w3p.exe and iexplorer instance of Silverlight this should resolve your issue.