Note that there are some explanatory texts on larger screens.

plurals
  1. POBreakpoint will not break in Silverlight
    primarykey
    data
    text
    <p>I am unable to hit a breakpoint on the server side of a Silverlight web application. I know the code executes as I can break on the asynchronous callback with what I was expecting. It's only my machine with this issue.</p> <p>I am aware this seems to be a common question, however all the answers to the ones I have seen have not helped me, including:</p> <ul> <li>The <strong>breakpoint is red</strong> indicating it will be hit.</li> <li><strong>Silverlight checkbox is checked</strong> on the web project's properties.</li> <li>Clean &amp; build the solution.</li> <li>Getting a new version from source control.</li> <li>Cleared everything from my web browser: cache, cookies etc... (<strong>I am using IE</strong>).</li> <li>Clearing the temp files in %windir%/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files.</li> <li>Checked that all projects are being built in the configuration manager.</li> <li>Everything set to debug and not release in the configuration manager.</li> <li>Manually attaching to the w3wp.exe process.</li> <li>IIS reset.</li> <li>IIS is set to use .NET v4 and the pipeline set to classic not integrated.</li> <li>Reinstalled IIS and freshly configured.</li> <li>Reinstalled Visual Studio.</li> <li>Reinstalled Silverlight.</li> </ul> <p>I am using Visual Studio 2010 (.NET 4), Silverlight 4, and using IIS (I think 6, cannot remember) to host the site.</p> <p>Interesting behaviour I have discovered (may help to diagnose):</p> <ul> <li>It will still not break if I use Visual Studio's own development server to host the site instead of IIS.</li> <li>I saw a blog post (cannot remember where or I would provide a link) under Debug -> Windows -> Proccess (Ctrl D, P) to check that the w3wp.exe process is set to "Silverlight" under the "Debugging" header - mine was set to "Managed" and was unable to set it to silverlight when attaching. After checking a colleagues settings on a machine which was working, his was also set to managed.</li> </ul> <p>Any suggestions will be very appreciated! </p> <p><strong>UPDATE:</strong> Thanks for all the suggestions. I decided to format C:\ instead of spending more time playing around, as my machine needed it badly anyway. I still am not sure what the problem was, but it is working now.</p> <p>I did try a couple of other things before this such as deleting the .sou files, and checking I was running the same version of Silverlight, mentioned in this <a href="http://radheyv.blogspot.co.uk/2011/04/breakpoints-are-not-hitting-in-my.html" rel="nofollow">blog post</a>, with no luck. Hopefully this will act as a checklist for people with this problem in the future.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload