The Visual Studio unable to attach to process. Access is denied error appears when Windows blocks Visual Studio from attaching its debugger to a running process. This ...
The debugger process must have 'PROCESS_ALL_ACCESS' access rights to the target program to be able to attach to it. This also implies that you can normally only debug processes you have yourself ...