How to attach to IIS process (w3wp.exe) on Windows 10/IIS 10?
Open Visual Studio in Administrator Mode, then Debug -> attach to process -> tick the check box “Show processes from all user”, select w3wp.exe. Administration mode is required for debugging the source code.