I am trying to debug a WCF Service from Silverlight (the service is in its own library within the SAME SOLUTION)

Simply ‘No joy’, tried attaching to process etc, was getting ‘wcf no symbols have been loaded for this document’ in the IDE also!!

Tried this, it did not work 😦 – http://blogs.msdn.com/greggm/archive/2008/03/17/debugging-wcf-services-in-visual-studio-2008.aspx

This is useful to know anyway – http://bbits.co.uk/blog/archive/0001/01/01/missing-wfc-service-configuration-editor.aspx

Double checked all this –

http://msdn.microsoft.com/en-us/library/bb157688.aspx (How to: Step into WCF Services)

http://msdn.microsoft.com/en-us/library/bb157687.aspx (Limitations on WCF Debugging) –

So, you cant step into it from calling code if its an asynchronous call, which is ALL CALLS in silverlight 🙂 but it should be ok anyway for normal debug?! so what gives?

In the end I created a simple console/windows app as discussed for IIS (I am using internal server though in this example) –
http://dotnet.org.za/willy/archive/2006/12/19/WCF-Debugging-_2D00_-IIS-hosted-services.aspx
http://silverlight.net/forums/t/17669.aspx 
the debugger then worked fine for my async call? does anyone know what I was missing in the SL version?

Also, dont forget to put a nice wait for keypress in your app if your using Async ! 🙂

Console.WriteLine(“Press any key to continue…”);
Console.ReadKey(true);

Out & Merry Xmas!

Advertisements