How do you debug Silverlight applications with Chrome AND hit breakpoints?

北战南征 提交于 2019-12-07 06:13:34

问题


I am using Visual Studio 2010 to create a Silverlight 4 application.

I set a breakpoint in my code-behind, start the debug session from Visual Studio, and unfortunately, my breakpoint never gets hit.

So, I eventually I tried setting my default browser to Internet Explorer ... and lo and behold ... my breakpoint gets suddenly hit.

Is Chrome a supported browser for debugging Silverlight applications? If so, what am I missing in order to get this to work?

Or, is Internet Explorer the only supported browser when it comes to debugging?


回答1:


See my answer and this answer on another question.

You have to manually attach to the Silverlight process. Use the Debug menu and select Attach to Process... once you have started debugging (via F5 or the Debug/Start Debugging option).




回答2:


As of September 2011 with Firefox 6, you need to configure Firefox if you want to debug. Steps are:

  • Load Firefox
  • Type "about:config" into Firefox's address bar
  • Accept the warning (if applicable)
  • Search for the entry "dom.ipc.plugins.enabled"
  • Change its value from "true" to "false" (double-click)
  • Restart the browser

Tada!



来源:https://stackoverflow.com/questions/3064647/how-do-you-debug-silverlight-applications-with-chrome-and-hit-breakpoints

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