Visual Studio Debugging with Silverlight 4 and Firefox

前端 未结 2 1162
日久生厌
日久生厌 2021-02-05 13:03

When trying to debug 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 cu

相关标签:
2条回答
  • 2021-02-05 13:52

    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 讨论(0)
  • 2021-02-05 13:55

    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!

    0 讨论(0)
提交回复
热议问题