How to debug a windows service using breakpoints?

后端 未结 5 1597
醉梦人生
醉梦人生 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 04:46

    It is not as convenient as breakpoints in the debugger but I found writing output to a simple log files helps. We have services that spawn threads to perform work and writing out to a log file has helped pinpoint problems.

提交回复
热议问题