Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Step though WCF Code

Posted on 2012-03-09
4
Medium Priority
?
463 Views
Last Modified: 2012-03-27
Hi,

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

Thanks
0
Comment
Question by:r_pat72
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 1000 total points
ID: 37704017
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.
0
 

Author Comment

by:r_pat72
ID: 37704382
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
0
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 37705530
What kind of binding are you using?
0
 

Author Comment

by:r_pat72
ID: 37705612
wshttp
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question