使用VS 2015调试Windows服务 [英] Debug Windows Service using VS 2015
问题描述
我在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屋!