65.9K
CodeProject is changing. Read more.
Home

Unable to DEBUG Silverlight Project?

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.56/5 (6 votes)

Mar 24, 2010

CPOL
viewsIcon

45509

What to do when you are unable to debug a Silverlight project

Today, I was looking at one of the client's Silverlight projects. I was able to debug anything but Silverlight code!

I did a lot of R&D on the internet and tried various tricks suggested. But only this thing worked for me:

When you add a Silverlight project to an ASP.NET solution, you create two projects…

  1. The startup project (interface starter)
  2. The interface itself

Now:

  1. Right click on the startup project (SilverlightWeb — the one with default.aspx in it )…
  2. Click on ‘Property Pages’.
  3. Open ‘Start Options’ Tab.
  4. Enable Silverlight Debugger.
  5. OK.

If step 3 is missing, then:

  1. There must be 'Silverlight Applications' tab. Open it.
  2. Click Add button, you will get a window to add the Silverlight projects.
  3. Add Silverlight interface.
  4. Enable Silverlight Debugging in options.
  5. Add it. Save.

History

  • 24th March, 2010: Initial version