wpf 在 Visual Studio 2012(RTM,在 Windows 8 RTM 上)中没有带断点的 XAML 绑定调试?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12067841/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-13 05:04:41  来源:igfitidea点击:

No XAML binding debugging with breakpoints in Visual Studio 2012 (RTM, on Windows 8 RTM)?

wpfxamlmicrosoft-metrosilverlight-5.0visual-studio-2012

提问by marcslogic

After upgrading my Silverlight 5 solution to Visual Studio 2012 (RTM), and then updating to Windows 8 (RTM), I noticed that when you set a breakpoint in XAML, you get the following tooltip in debug mode:

在将我的 Silverlight 5 解决方案升级到 Visual Studio 2012 (RTM),然后更新到 Windows 8 (RTM) 后,我注意到当您在 XAML 中设置断点时,您会在调试模式下获得以下工具提示:

The breakpoint will not currently be hit. Symbol not found: System.Xml.Xsl.Runtime.XmlQueryRuntime.OnCurrentNodeChanged2.

当前不会命中断点。未找到符号:System.Xml.Xsl.Runtime.XmlQueryRuntime.OnCurrentNodeChanged2。

I then tried to set a breakpoint in the XAML of a Windows Store App test project, and then of a WPF application, but I got the exact same tooltip.

然后我尝试在 Windows Store App 测试项目的 XAML 中设置断点,然后在 WPF 应用程序中设置断点,但我得到了完全相同的工具提示。

I tried to repair Visual Studio 2012, but that did not change anything.

我试图修复 Visual Studio 2012,但这并没有改变任何东西。

In Visual Studio 2010 such breakpoints worked fine.

在 Visual Studio 2010 中,此类断点工作正常。

Is anybody experiencing the same problem? Any idea on how to solve this?

有人遇到同样的问题吗?关于如何解决这个问题的任何想法?

采纳答案by aljj

Try to enable symbol download and source from MS. As suggested here http://msdn.microsoft.com/en-us/library/cc667410.aspx

尝试从 MS 启用符号下载和源。正如这里所建议的 http://msdn.microsoft.com/en-us/library/cc667410.aspx

回答by Flipside

The solution for me was opening xaml pages with the Source Code Editor.

我的解决方案是使用源代码编辑器打开 xaml 页面。

Right-Click xaml page->Open With...-> Source Code (Text) Editor

右键单击 xaml 页面-> 打开方式...-> 源代码(文本)编辑器

回答by José Morango

Select the silverlight companion project of you application project.web, right click na go to properties, select the tab "WEB" then in the bottom in "Debuger" activate Silverlight check box.

选择您的应用程序 project.web 的 Silverlight 配套项目,右键单击 na 转到属性,选择选项卡“WEB”然后在“调试器”底部激活 Silverlight 复选框。