How do you debug a Windows Service?

后端 未结 15 2847
春和景丽
春和景丽 2020-12-12 21:07

I read the MSDN article on the topic. To quote:

Because a service must be run from within the context of the Services Control Manager rather than

15条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-12 21:51

    Add lots of verbose logging in your OnStart. It's painful and old school, but it works.

提交回复
热议问题