tags:

views:

101

answers:

2

Any Idea, debug a WCF proxy class.

Actually I have created a Partial Class of a PROXY ... and I need To TEST & DEBUG IT. using TestDriven.Net

but when I put a Break Point on my Partial Class , it's giving warning message like "DebuggerStepThroughAttribute" is My Code Only

+2  A: 

Use a debugger, such as VS 2008.

From what I have read, the warning seems perfectly fine. Of course you only want to debug your code, not third party libaries, aren't you?

Ngu Soon Hui
;) Short, right to the point. So short it would be insulting... if the question would be forumated smarter. This way it is exactly right.
TomTom
yup .. or by TestDriven.Net
openidsujoy
A: 

I've had trouble doing this. How about creating your own channel factory class for your WCF service, so you're not using the generated proxy?

Something like

using (var channelFactory = new ChannelFactory<IMyContract>(new BasicHttpBinding()))
{
   var endpoint = new EndpointAddress(@"http://myaddress/MyService");
   var channel = channelFactory.CreateChannel(endpoint);
   channel.MyOperation();
}

??

TobyEvans