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

蹲街弑〆低调 提交于 2020-01-23 01:18:26

问题


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:

The breakpoint will not currently be hit. Symbol not found: 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.

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

In Visual Studio 2010 such breakpoints worked fine.

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


回答1:


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




回答2:


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

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




回答3:


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.



来源:https://stackoverflow.com/questions/12067841/no-xaml-binding-debugging-with-breakpoints-in-visual-studio-2012-rtm-on-window

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!