使用VS 2015调试Windows服务 [英] Debug Windows Service using VS 2015

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

问题描述

我在VS 2015和.net 4.6中创建了一个Windows服务器,需要对其进行调试。 我附上了


I have a windows server created in VS 2015 and .net 4.6, and need to debug it.  I attached the process as described here but the breakpoints say they currently will not be hit, no symbols are loaded.  This service has a timer and every minute c# code makes an database call.  I know this method is being called but the breakpoint is not being hit.  What should I do to make this happen?

When I go to the Break menu and select Break All, this break point pops up at the end of the Program.Main method:

Thank You.

解决方案

>...but the breakpoints say they currently will not be hit, no symbols are loaded.

Do you have the .pdb file that corresponds to your .exe in the same directory as the .exe?

Dave


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

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