Debugging Silverlight in Visual Studio 2010

14,384

Solution 1

Be sure to set the Silverlight Debugging checkbox on the project properties Web tab

Solution 2

If Chrome is your default browser and your breakpoint tooltip shows this message:

"The breakpoint will not currently be hit. No symbols have been loaded for this document"

... then it is possible the debugger attached to the wrong Chrome process at debug startup. A work-around is:

  1. Start debugging your Silverlight app. Your app should be running in Chrome.
  2. From the Debug menu, select Attach to Process...
  3. Scroll through the available processes and locate the chrome.exe process that shows the type as 'Silverlight x86'.

  4. Select that process and click Attach.

Solution 3

I had firefox as my default browser and nothing was being hit(I even tried attaching to a process). What finally worked for me was setting IE as the default.

Silverlight break points are now being hit for me! :)

Solution 4

Right Click on Web.UI project in solution. go to Web , check Debuggers --> Silverlight save and Debug.. Make sure you have silverlight developer installed.

Share:
14,384
109221793
Author by

109221793

Updated on June 04, 2022

Comments

  • 109221793
    109221793 about 2 years

    I have an MVC application which uses a silverlight control.

    Somewhere along the line something is happening in the silverlight cs code that isn't right. I've inserted break points in the CS silverlight code to get a better idea of what's happening, but for some reason I just can't step through the code.

    I know code is being hit, but it's just not showing me in the debugger.

    I thought it might be because I was using Chrome as the default browser but I changed this to Internet Explorer and still no joy.

    I realize this is a very vague question, but has anyone else experience anything similar, and if so, how did you get around it?

    Any help would be appreciated,

    Thanks.

  • NoWar
    NoWar about 10 years