窗口服务调试 [英] Window Service Debugging

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

问题描述

先生,我创建了一个窗口服务,每天发送短信
我如何检查它是否正常工作,或者不使用调试器plz帮助我.
Win应用程序中的相同代码可以正常工作,但在服务中可能出问题了.请帮助我

sir i created a window service that send the sms daily
how i check is it work properly or not using debugger plz help me.
same code in win application work fine but in service something might be wrong.plz help me

推荐答案

使用调试器,将应用程序与Windows服务进程连接在一起.

1.让Windows服务运行
2.转到Visual Studio->调试->附加以进行处理
3.找到Windows服务线程并将其选中并附加.
4.将断点放在您的应用程序中,如果执行该断点.
Using debugger, attach the application with the windows service process.

1. Let the windows service run
2. Go to Visual Studio->Debug->Attach to process
3. Find the windows service thread and select it, attach it.
4. Put the break-point in your application, and it would hit it if executed.


这篇关于窗口服务调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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