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:
I understand that I need to start it as regular service, but how can I break it on the first functions?