I have a .NET windows service which I can stop and run through Process Hacker.
I can also view it's code with dnSPY.

I tried to debug it without a success by trying to attach to the process.
I wanted to restart the service and break it on its first initializing functions.
When I tried to start the service from dnSPY I get:
enter image description here

I understand that I need to start it as regular service, but how can I break it on the first functions?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.