How do you debug Silverlight apps using Chrome AND hit breakpoints?

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

I set a breakpoint in my code, started a debugging session from Visual Studio, and unfortunately my breakpoint never hits.

So, in the end, I tried to set the default browser on Internet Explorer ... and here it is ... my breakpoint suddenly hit.

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

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

+5
source share
2 answers

See my answer and this answer to another question .

You need to manually connect to the Silverlight process. Use the menu Debugand select Attach to Process...after starting debugging (via F5or Debug/ Start Debugging).

+3
source

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

  • Download Firefox
  • Type "about: config" in the address bar of Firefox
  • Accept warning (if applicable)
  • Search for entry "dom.ipc.plugins.enabled"
  • Change its value from "true" to "false" (double click)
  • Reload browser

TA-dah!

+1

All Articles