如何调试作为Windows服务托管的WCF服务 [英] how to debug a WCF Service hosted as windows service

查看:87
本文介绍了如何调试作为Windows服务托管的WCF服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Friends,

我有Windows服务中托管的WCF服务,因为它使用netTcpBinding,并且我没有IIS 7.

I have a WCF service hosted in Windows service as it uses netTcpBinding and i do not have IIS 7.

有人可以让我知道如何调试WCF服务吗?

Can someone please let me know how do i debug the WCF service?

非常感谢

Rathi

推荐答案

从Visual Studio中的WCF项目中,单击调试".工具栏上的菜单"菜单,然后选择附加到进程" -在列表中找到您的服务的exe(您可能需要选中显示所有用户的进程",然后单击附加"按钮.


这是MSFT中有关此过程的文档
http://msdn2.microsoft.com/en-us/library/c6wf8e4z.aspx
From within your WCF project in visual studio, click "Debug" menu on toolbar, then "Attach to Process" - find your service's exe in the list (you may need to Check" Show processes from all users" and then click the "Attach" button.


Here is the documentation on this procedure from MSFT
http://msdn2.microsoft.com/en-us/library/c6wf8e4z.aspx


这篇关于如何调试作为Windows服务托管的WCF服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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