如何逐步了解分层体系结构中的Windows服务 [英] How to step through the Windows service in Layered Architecture

查看:79
本文介绍了如何逐步了解分层体系结构中的Windows服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Frens,

我安装了Windows服务,并在分层体系结构中使用它.尽管我通过使用"Process"连接Windows服务,但无法单步浏览Windows.
我什至尝试调用方法"Debugger.Launch()"
但是我仍然无法逐步执行Windows服务.
是否可能是WCF服务问题?
请帮助....


问候
Aabidha

Hello Frens,

I have a windows service installed which I use it in a layered architecture.I am not able to step through the windows though I attached the windows service by using the "Process".
I have even tried calling the method " Debugger.Launch()"
But still Iam not able to step through the windows service.
Whether it can be a WCF service problem?
Plz help..


Regards
Aabidha

推荐答案

我发现调试服务的最简单方法是将服务的核心代码放入单独的程序集中,然后创建控制台引用该程序集的应用程序,然后改为调试控制台应用程序.
The easiest way I''ve found to debug a service is to put the service''s core code into a separate assembly, and then create a console app that references that assembly, and then debug the console app instead.


这篇关于如何逐步了解分层体系结构中的Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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