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:
- Type "about:config" into the address bar of Firefox
- Find the property named "dom.ipc.plugins.enabled"
- Change the value from true to false by double clicking
- Restart all Firefox browsers
- 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
.
精彩评论