问题描述
我的解决方案包含两个项目,WPF主应用程序项目和Windows服务项目(通过继承ServiceBase类使用控制台应用程序创建)。当我构建Windows服务项目时,它为windows服务创建exe文件,这个exe安装在services.msc中。主WPF应用程序项目使用端点和代理使用此安装的服务。
我的问题是:我不知道如何调试这样的服务。谁能告诉我如何调试这些服务。
请帮助。
Hi,
I have solution that contains two projects, WPF main application project and windows service project(created using console application by inheriting ServiceBase class). When i build windows service project it creates exe file for windows service this exe is installed in services.msc. The main WPF application project is using this installed service using endpoints and proxy.
My problem is: i didn't know how to debug such service. Can anyone please tell me how to debug such services.
Please help.
推荐答案
这篇关于如何调试使用ServiceBase类创建的Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!