Wcf: Service + Client in the same solution, how to debug? I do not want to simultaneously launch 2 versions of VS 2010 :-)

I created an application with client (WPF) and server (WCF), the service is IIS, currently I need to have 2 versions vs 2010. 1 loads the wcf service in IIS, and the other in my Windows application.

The problem with this is that it takes so many resources.

It appears if the wcf service is NOT hosted in IIS, then I can start 2 projects at a time in accordance with this http://msdn.microsoft.com/en-us/library/bb157685.aspx

But what are my other options?

I need to find the best way to compile / run 2 projects and execute STEP INTO each when in DEBUG .... without using too many resources / with more than 1 vs 2010 open at the same time

Any help really appreciated

+4
source share
3 answers

You should be able to debug both from the same instance of Visual Studio if they are in the same solution. When you start the application from Visual Studio, open the "Debug" menu and select "Attach to the process", you need to attach the debugger to the ASP.NET workflow (aspnet_wp.exe), it should automatically connect to your client.

+2
source

Open the service and customer code in VS. Open the Debug menu. Join the process. Hold the Ctrl key and select as many processes as you want to debug with the mouse.

In your case, you can choose the ASP NET workflow depending on the version of IIS and the client process.

0
source

The easiest way to debug your WCF service:

  • Right-click the project containing the svc file.
  • Select Install as Startup Project.
  • Put a breakpoint on the methods you want to debug.
  • The breakpoint must be red.
  • Make sure your application configuration file points to the version of the debug version of WCF that is currently running, for example:

http: // localhost: 12345 / MyService.svc

  1. Launch the app.

  2. When an application calls this WCF method, it should stop at a breakpoint.

0
source

All Articles