Click here to Skip to main content
15,881,173 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Every once,

I am begginer in WCF service.
I create one metthod which returns datatable in wcf service.cs

Now i want to debug this method.
please help me...

Thanking you in advance.
Posted

Like any other method. Put a break-point (Press F9 while the text cursor is on the wanted line) and, start debug (Press F5).
 
Share this answer
 
Comments
pratik1 15-Jun-12 6:00am    
Hello,
Thanx for reply.

But it is not working.
Because how WCF service call that specific method which we want to debug.??

So I think some thing from which we can call that method.
Shmuel Zang 15-Jun-12 8:00am    
What's not working. Just host your service in a Console Application and, run the Console Application in Debug. Then, you can run a testing client (You can use my InterfacePresenter for a testing GUI), for calling the service's method.
Hello,
Thanx for reply.

But it is not working.
Because how WCF service call that specific method which we want to debug.??

So I think some thing from which we can call that method.
 
Share this answer
 
Comments
db7uk 15-Jun-12 6:07am    
This is not a solution and should be removed to avoid confusion.
Also I think the question is not clear. Are you talking about a service that is hosted in a development environment or remote location. What sort of WCF service is it (self hosted, service or IIS)? what bindings have you used? nettcp, http, msmq? The more information we get the better the chance of an accurate answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900