开发者

Visual Studio Debugging with Silverlight 4 and Firefox

When trying to de开发者_StackOverflowbug a Silverlight 4 application in Visual Studio 2010 with Firefox as my browser, I am unable to hit any breakpoints. I get the message "breakpoint will not currently be hit".


Here is the solution that worked for me when debugging was not working in Firefox:

  1. Type "about:config" into the address bar of Firefox
  2. Find the property named "dom.ipc.plugins.enabled"
  3. Change the value from true to false by double clicking
  4. Restart all Firefox browsers
  5. Go back to Visual Studio and start debugging!

Hope this saves someone else some time!


Firefox hosts silverlight (and other plugins) in a sandboxed process called plugin-helper.exe.

Manually attach your debugger to the correct instance of this (it'll have "Silverlight" in the process type field), and you get your debugging back, and you get to keep your plugin sandboxing too.

EDIT: Looks like someone else sick of doing this by hand and wrote an VS2010 addon to automatically attach to plugin-helper.exe.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜