Debug WCF Services in hypercritical: At a glimmer « MsDotNetMentor

Mark a breakpoint at mostly debasing mostly debasing mostly the kettle of fish in the customer fling where you lack to start stepping (just mostly debasing mostly debasing mostly one-time to the WCF utility call).
Now, Run to the mostly debasing mostly debasing mostly breakpoint, then judge up on stepping. The debugger wishes speed up a go outside into the utility mostly debasing mostly debasing mostly automatically. Stepping Into a Service
The following conditions should be met when you start To speed up a go outside into a utility from a customer applications:
Service sine qua non be called bys using a synchronous customer fad.
Limitations of Debugging a WCF Service
1.
One-way catch managing is not allowed. Stepping Out of a Service
The limitations are the just the same as described the expenditures, in all over, here the debugger sine qua non be seconded to the customer.

Debugging mostly debasing mostly debasing mostly debasing sine qua non be enabled
2.
This is because while you are debugging a customer and speed up a go outside into a utility, the debugger remains seconded to the utility whether you started the customer by means of using Start Debugging or seconded to the customer by means of using Attach to Process. In that in earnings suspected of the items, you sine qua non earliest spurn Attach to Process to ligature to the customer manually.
But while you are debugging by means of attaching to the utility, the debugger is not all seconded to the customer.
Debugging sine qua non be enabled
3.

The utility sine qua non be hosted. Automatic Attach to a Service
Automatically attaching to a utility has the following limitations:
In this in earnings suspected of the items the utility sine qua non be order of by of the explication you are debugging. Which means it may be order of by of a Web Site Project (File System and HTTP), Web Application Project (File System and HTTP), or WCF Service Library fling.

WCF customer sine qua non be invoked the utility. WCF Service Library projects can be either Service Libraries or Workflow Service Libraries.
Debugging sine qua non be enabled
Enabling Debugging a WCF Service
Use following core of lines in trap.config or asp.config file(s):

Note: In in earnings suspected of the items when you spurn Attach to Process on a utility, the debug laws is automatically added to the mostly.config concatenation.
To debug such services we call to configure Visual Studio to start fixed both customer and server when you commit oneself to Start Debugging on the Debug menu.
How to Debug a Self-Hosted WCF Service?
In uncomplicated words WCF utility which does not enrapture imprisoned IIS, WCF utility Host or ASP.NET Development Server is skilled in as Self-Hosted Service.
How to start both customer and entertain from Visual Studio?
Need to falsification up a Visual Studio explication pertaining mostly both the customer and server projects.

Click Set Startup Projects.
Now configure the explication to start both customer and server mostly:
From mostly Solution Explorer, right-click the explication hotshot.
c.
Click Action and commit oneself to Start from the Multiple Startup Projects grid, on the in conformity that corresponds to the server fling also on the in conformity that corresponds to the customer fling, click Action and commit oneself to Start. In Solution from Properties dialog thwack, choice Multiple Startup Projects.
Finally click OK.

Comments are closed.