Easier way to debug a Windows service

后端 未结 28 2042
春和景丽
春和景丽 2020-11-22 15:36

Is there an easier way to step through the code than to start the service through the Windows Service Control Manager and then attaching the debugger to the thread? It\'s ki

28条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-22 16:11

    Use Windows Service Template C# project to create a new service app https://github.com/HarpyWar/windows-service-template

    There are console/service mode automatically detected, auto installer/deinstaller of your service and several most used features are included.

提交回复
热议问题