Wrapping a C# service in a console app to debug it

前端 未结 10 1211
遇见更好的自我
遇见更好的自我 2020-12-15 03:36

I want to debug a service written in C# and the old fashioned way is just too long. I have to stop the service, start my application that uses the service in debug mode (Vis

10条回答
  •  抹茶落季
    2020-12-15 04:40

    I have used unit tests to debug difficult setups in the past, just write a unit test that calls whatever service method with whatever parameters and set debug breakpoints in the unit test.

    Using testdriven.net or jetbrains testrunner makes it easier.

提交回复
热议问题