Debugging Visual Studio 2010 Unit Test and WCF Service in one IDE instance

Posted by Dr.HappyPants on Stack Overflow See other posts from Stack Overflow or by Dr.HappyPants
Published on 2010-05-07T18:44:23Z Indexed on 2010/05/07 18:48 UTC
Read the original article Hit count: 460

Filed under:
|
|
|
|

I have created a WCF service in Visual Studio 2010 along with some supporting assemblies. I have also created a test project which contains multiple unit tests for the service and the supporting assemblies. Right now I have them all in one solution with the Test project having a service reference (http) to the WCF service.

If I debug the WCF service and select "Run checked tests" in a Test List I created, I can debug the WCF service without a problem. Note: I cannot select Debug Checked Tests while debugging the WCF service. (Because the IDE is already debugging?)

If I open the Test project in another instance of VS 2010, debug the WCF service and then select "Debug Checked Tests" - I can debug both my tests and the WCF service.

However - I would like to (and my question is) be able to debug my tests and my service in a single IDE. Is this possible?

© Stack Overflow or respective owner

Related posts about debugging

Related posts about wcf