Google Search Results
You arrived here after searching for the following phrases:
Click a phrase to jump to the first occurrence, or return to the search results.
Getting a development machine set up is a fine art of patience and a good memory. I personally recommend Ninite which is frankly awesome, followed by Visual Studio in its various flavours, followed by the Web Platform Installer.
However, with so many tools, frameworks, patches and add-ons to install it can be easy to miss something.
Even more frustrating, sometimes it can even be easy to install things in the wrong order.
Silverlight debugging: Get the right Tools
Specifically for Silverlight, it can appear as if you have all the necessary pre-requisites to create and debug Silverlight applications in Visual Studio 2008 SP1, but in fact your breakpoints are never hit.
You have the Silverlight project templates installed, you’re happily mixing and matching Visual Studio and Expression access to your project tree, but when compiling and running your project, Visual Studio either flatly ignores your breakpoints or reports that the symbols haven’t been loaded and that the breakpoints won’t be hit.
Some standard solutions
A lot of Googling takes you to answers around the following, none of which have actually applied to me recently:
- Ensure you are running from a http:// address rather than a file:// address
- In summary, do this by creating a separate Web application in your solution and then adding a link from it to your Silverlight project to ensure VS launches your browser pointing at a web server rather than the filesystem.
- Debugging is disabled by default when going to local filesystem-based URLs.
- Ensure “Silverlight” debugging option in your website project Properties > Web tab is checked
- Some solutions even point to unchecking, then rechecking the option in order to kick VS into recognising the breakpoints.
- Manually attach to the browser process, since VS may have attached to the wrong instance.
- This especially seems to hit IE8 users where Silverlight apps are reputedly launched in a separate process to the main HTML.
- Ensure you have “Silverlight” attachment type listed in the “Attach to process…” dialog box and that it is selected.
- For example, attaching to iexplore.exe but selecting “T-SQL” as your attachment type will obviously not let you hit any Silverlight breakpoints.
One other solution: install Silverlight Tools for Visual Studio 2008 SP1 (again)
For me, the biggest single problem is flatly ensuring you have installed the Silverlight Tools installed after everything else.
With all the various installers, it’s actually possible to end-up with a fully functional Silverlight development environment, including all the GUI clues, but with debugging being an impossibility. How to diagnose it? Check if you have the Silverlight option in the debugging types:
Without this type listed in the “Attach to process…” dialog, Visual Studio will give you no other clue that it won’t be able to hit breakpoints – even if you have “Silverlight” listed as a debugging option in the website properties.
Installing the Silverlight Tools for Visual Studio SP1 ensures this is in place. Then you can go back through the other items in the checklist
Some useful related links:
- Silverlight Tools for Visual Studio SP1 mentioned above (http://go.microsoft.com/fwlink/?LinkID=143571)
- Alternatively you can download the standalone Silverlight SDK from http://go.microsoft.com/fwlink/?LinkID=157102.
- Silverlight Toolkit (http://silverlight.codeplex.com)
- Not to be confused with the required developer tools, this is an awesome open-source set of examples to get your started with Silverlight.
- Silverlight + WCF RIA Services (http://www.silverlight.net/riaservices/)
- The “Getting Started” page from Microsoft (http://www.silverlight.net/getstarted/)


Great tips. I’ve found that it can also happen because your browser is caching the SL xap file. A good environment trick (in IE) is to disable the cache for the session or the whole domain using the built-in dev tools (F12) – “Always Refresh From Server”
Thanks all really i found these info helpful for me.
Your acetrlis are, well… glorious to say the least. Thanks so much.Do you have any idea why I can’t seem to debug my custom TypeConverter in a new instance of Visual Studio? I’ve looked all over the Internet for a solution. I have VS 2005 SP1, tried Tools > Options > Debugging > General > Enable Just My Code (Managed only) (on and off), deleted and recompiled DLLs and pdb’s in obj and debug folders, used "*" for DLL revision (to ensure that a cached copy is not being used), compiled and debugged using various console and windows forms test applications, tried on XP 32-bit box (I’m using 64-bit Vista), tried the System.Diagnostics.Debugger.Break() method (which, by the way, works great for debugging custom installers), and various permutations of inheriting from TypeConverter/ExpandableObjectConverter, overriding few/many methods, implementing converter interfaces, etc.Still the symbols for debugging refuse to load… and yes, am running in DEBUG mode with the DEBUG compilation symbols checked.Any help would be greatly appreciated.
So what happens when you’ve done everything in the first section (including manually setting the debugging), and verified that Silverlight is in your list of options? Debugging was working fine for me, and then I made a new copy of my code, removed the old project, added the new one, and now I can’t get it to debug into the new project, even though I know its loading the right xap file (changes to the new project show up fine).
Try Rebuild Solution. I had Silverlight projects on my desktop system that debugged fine. Copied the entire solution directories to my laptop, but breakpoints wouldn’t be hit there. Tried everything, including the suggestions on this blog. Other projects debugged fine on my laptop, just not the ones I copied over. Finally I tried Rebuild Solution (on the Build menu). Viola!
I have found that I need to manually attach to the process plugin-container.exe when attempting to debug Silverlight when Firefox is my default browser. This does not always work though…
I firefox is your reason for failure. Here is an alternate solution to the manual attach
http://blogs.telerik.com/blogs/posts/10-06-24/debugging_silverlight_with_firefox_3_6_4.aspx
Also, if your change default browser from IE to another (Chrome, FF, Opera, etc) – breakpoints will be “pass-through behaviour”
Solution: back you default browser to IE, logoff and logon to Windows again.
Windows 7 x64, IE 8.
You need this setting:
http://webeffects.co.za/?p=22
you can try also remove silverlight app from debugging website and the add it again. that works for me.
yes i know is very old post but nothing here worked for me.
Hello friends,
Normally debugging is not working in silverlight, so you have to make a small change in it just follow the following steps,
1. Set the breakpoints where you want.
2. Go to -Debug-Attach to process
3. Select the ( plugin-container.exe ) process-press Attach
4. Run your application.
Finally you can see, it works normally….
Thank you,
chaitanyasalgar@live.com
The only thing that worked for me was deleting the .xap and then doing a Clean > Rebuild All