I created a SharePoint solution using visual studio and attached it to the w3wp.exe process. I cannot debug although I have put many breakpoints all around the code. I am running Visual studio as administrator as well.
As far as I can think, there can be 3 reasons.
- SharePoint might run under different user. So check all processes from all users and attach to all w3wp.exe processes.
- You could have made a Sandboxed Solution. In that case, it should be attached to SPUCWorkerProcess.
- You could be debugging a timerjob. In case, that should be attached to OWSTIMER.exe process.