Unable to DEBUG Silverlight Project?






4.56/5 (6 votes)
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…
- The startup project (interface starter)
- The interface itself
Now:
- Right click on the startup project (SilverlightWeb — the one with default.aspx in it )…
- Click on ‘Property Pages’.
- Open ‘Start Options’ Tab.
- Enable Silverlight Debugger.
- OK.
If step 3 is missing, then:
- There must be 'Silverlight Applications' tab. Open it.
- Click Add button, you will get a window to add the Silverlight projects.
- Add Silverlight interface.
- Enable Silverlight Debugging in options.
- Add it. Save.
History
- 24th March, 2010: Initial version