Peter Schmeichel

How can I debug a service The service is called from a WPF client. The service is hosted in IIS.


Re: Windows Communication Foundation (Indigo) How to debug a WCF service

Brian McNamara - MSFT

See http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1726378&SiteID=1 for some general debugging tips.




Re: Windows Communication Foundation (Indigo) How to debug a WCF service

Peter Schmeichel

I understand that tracing is helpful. I also do tests. Nevertheless, I want to debug my service. I want to step from my client into my service. Is that possible

I found some (probably outdated) postings about attaching my server project to the running client. I did not succeed with that.

I am using Vista and Orcas beta 1.





Re: Windows Communication Foundation (Indigo) How to debug a WCF service

Brian McNamara - MSFT

I think there may have been some bugs in this in Beta1... I think in Orcas Beta2 you will be indeed be able to 'step through' calls from the client into the server. Until then, you may have to attach separate debuggers (to client process and server process) to debug both ends. Note that if server is IIS-hosted, this means attaching the debugger to the worker process (e.g. w3wp).




Re: Windows Communication Foundation (Indigo) How to debug a WCF service

JDPeckham

when i want more control over debugging i just create a console app that calls into my service implementation directly with test data... i usually steal the code from my unit tests and put it in the console app. nUnit is cool for yes/no answers of whether or not it worked, but a console app is cool for the fact it'll break into the debugger on exception.




Re: Windows Communication Foundation (Indigo) How to debug a WCF service

Peter Schmeichel

"w3wp" was what i was looking for... brilliant