You can try this out by simply having a WCF service and client project that consumes it in the same solution, set the client as the startup project, set a breakpoint in the service code and hit F5.
要试验这一点,只要将WCF服务以及消费这个服务的客户端项目建立在同一个解决方案中,将客户端项目设定为启动项目,在服务端的代码中设立断点,并按F5就可以了。
When a solution has multiple projects, make sure you set the project that contains the package that you want to run as the startup project before you run the package.
如果解决方案包括多个项目,请确保在运行包之前,将包含要运行的包的项目设置为启动项目。
When a solution has multiple projects, make sure you set the project that contains the package that you want to run as the startup project before you run the package.
如果解决方案包括多个项目,请确保在运行包之前,将包含要运行的包的项目设置为启动项目。
应用推荐