WCF初学者教程 - 无法调试(步入) [英] WCF Beginner Tutorial - Unable to debug (step into)

查看:105
本文介绍了WCF初学者教程 - 无法调试(步入)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做以下教程: http: //msdn.microsoft.com/en-us/library/ms731835%28v=vs.100%29.aspx ,程序运行正常。服务和客户端都有不同的解决方案。我可以从一个视频工作室开始服务,然后成功运行客户端程序。但是我想做调试。我想从客户端代码中输入服务代码。当我尝试这样做时,我收到以下错误。

I am doing the following tutorial http://msdn.microsoft.com/en-us/library/ms731835%28v=vs.100%29.aspx and the program is working perfectly fine. Both Service and Client are in different solutions. I can start the service from one visual studio and then run the client program successfully. However I want to do debugging. I want to step into Service code from Client code. When I try doing that, I get the following error.

无法自动进入服务器。连接到服务器进程失败,调试器已经附加了。

"Unable to automatically step into the server. Attaching to the server process failed. A debugger is already attached."

客户端和服务器都是控制台应用程序,服务被托管。我还尝试在客户端的app.config文件中启用debug = true。

Both client and server are console applications and service is slef hosted. I also tried enabling debug = true in the app.config file of client.

谢谢

Varun


Varun

推荐答案

有几个可能的选择,您正在尝试实现:

There are several possible options for what you're trying to achieve:


  1. 由于错误指定,客户端调试器无法附加到服务器进程,因为它已经有一个调试器。尝试启动没有调试器的服务器进程。

  2. 将客户端和服务器代码放入相同的解决方案,然后使用RMC - > Debug - >在服务器和客户端项目上启动新实例

  3. 使用调试器运行服务器进程,然后使用Debug - > Attach to proces ..附加到客户端代码(不应该使用调试器运行)

我建议(至少暂时)把这两个放在同一个解决方案中进行调试。在单个工作区中更容易处理。

I'd recommend (at least for the time being) putting those two into the same solution for debugging purposes. It's easier to work with in the single workspace.

这篇关于WCF初学者教程 - 无法调试(步入)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆