We help IT Professionals succeed at work.

Step though WCF Code

r_pat72
r_pat72 asked
on
Hi,

I have a WCF project. Could some one tell me how can I step though WCF service methods?

Thanks
Comment
Watch Question

CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2015
Commented:
From a client, or on the server itself? You won't be able to step through from the client (AFAIK), but you could either run the service on the server via debug mode in Visual Studio, deploy the service to IIS (or a self-hosted service) and attach to the process from within VS, or, if you don't have VS on the server, you might try remote debugging the service.

You can put a breakpoint in the relevant part(s) of your service, and when you client makes a request to the service, if you have VS attached to the service, then your breakpoints should hit.

Author

Commented:
i want to debug from visual studio without client. I set the wcf Project as start up project.Right clicked on .svc file & cliked on view on browser. Attached the IE process from visual studio.
Added a break point inside a method call.

Then I called a method from the URL with querystring like this.

http://localhost:portname/demo1.svc/GetEmpDetails?empid=1213

I am expecting the breakpoint should hit when I refresh the browser, but I don't get any result with this process.

Is there anything I am doing wrong?

Thanks
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2015

Commented:
What kind of binding are you using?

Author

Commented:
wshttp

Explore More ContentExplore courses, solutions, and other research materials related to this topic.