How to debug WCF service simultaneously with two console applications

I have a WCF web service that is responsible for managing the work sent from our internal business applications to a distributed set of client applications.

I would like to be able to configure the console application to mock the internal application (to check the sending operation), as well as to make fun of the client application (to check the execution of work).

To do this, I will need to simultaneously debug two console applications with the ability to navigate through the code in the WCF service. Obviously, [wrong, see Answer], a Visual Studio solution can have only one launch project; the transition in this scenario is frivolous. But how can I get through the WCF service with two console applications at the same time? (Can / should be done? Is there a better way to get closer to testing?)

+5
source share
3 answers

Obviously, a Visual Studio solution can have only one startup project,

This is not true.

" StartUp Projects...", . Debug.

+8

. Reed copsey, , Visual Studio. visual studio, .

+1

, Debug/Start New Instance. , .

However, in such situations, I would not debug all three applications at once, since it is very difficult to track things. No more than two at a time, and this is too complicated for large projects in concurrency scripts. But nothing bad if you have a small project.

In a real situation, I would rely on a debug log. Many and many debugging protocols. The file or event log does not matter. If everything is done correctly and in the right places, it will provide information similar to a manual debugging session. This can help you identify all sorts of problems. Hope this helps.

+1
source

All Articles