To debug a plugin, make sure you attach the right process. Please find the process details below:
- online – w3wp.exe
- offline – Microsoft.Crm.Application.Hoster.exe
- asynchronous registered plug-ins (or custom workflow assemblies) –CrmAsyncService.exe
- sandbox (isolation mode) – Microsoft.Crm.Sandbox.WorkerProcess.exe