How to debug a windows service using breakpoints?

后端 未结 5 1604
醉梦人生
醉梦人生 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条回答
  •  猫巷女王i
    2020-12-17 04:47

    Simplest approach...

    Put the business - functional portions of the service code in a separate class, in a separate library assembly... Then you can debug it independantly using a simple console app...

提交回复
热议问题