In Microsoft Windows you are able to access some special folders and start some special application from Run… and then type a magic command.
One of these folders is %appsfolder% with a list of installed applications. From this folder you are able to create shortcuts etc. This folder can be accessed using the Windows Run command box and typing “shell:appsfolder”.
When you want to open the folder or run another command without first clicking Windows, Run: You are also able to execute the command from a command prompt using “start” and then the magic words you have to type in the run command box.
Next add a line / lines Debugger.Break(); in your code where you want the debugger to start. Now compile in debug mode clicking in Visual Studio menu: Build, Build Solution while the Configuration Manager is set to Debug.
After the application compiled successfully we can stop and start the service to ensure these modifications are run: