Saturday, October 30, 2010

How to enable debugging or attach debugger in visual studio with silverlight when browser is firefox

This will help all the people who are facing problem to attaching the debugger of visual studio when firefox is use for browsing.
Today I was facing problem in attaching visual studio debugger while using firefox. I kept googling here and there and then almost spending 3-4 hours, Some where i found that when you use IE then your debugger will get attached. I tried it and the problem was solved. Finally the debugger got attached with IE and not with firefox. Then further googling gave me following solution in which you have change the config of the firefox

Solution:
  • In address bar of FireFox type "about:config".
  • Read the warning and accept it.
  • Now type: "npctrl" in the search bar of the config options .
  • You will then see the entry: dom.ipc.plugins.enabled.npctrl.dll
  • Now Change the value from true to false (just by double-clicking will change this).
  • Now Restart Firefox
All is done, Now set your breakpoints and run your visual studio. All your breakpoints will be reached.

Thanks,
Maninder

No comments:

Post a Comment