How to debug a windows service using breakpoints?

后端 未结 5 1598
醉梦人生
醉梦人生 2020-12-17 04:38

I have a windows service with a timer. Its very hard to debug it. Because I start the service and put break points in different parts of the code. When I attach the process,

5条回答
  •  北海茫月
    2020-12-17 05:06

    You can use "Image File Execution Options" and configure that each time that the service start it would start inside a debugger.
    That debugger can be WinDBG or Visual Studio.

提交回复
热议问题