I’m a big fan of sandboxed solutions because in addition to the safety features of running outside of the IIS worker process, you also are more agile as a developer. Farm solutions deployed in the GAC reset your web application after each deployment which means you may have to wait (typically 30 seconds or more) every time you deploy.
Should you find yourself having to debug a sandbox solution remotely you can do the following to get it working.
Note: In a multiple server farm deployment, you will want to make sure this service is running on only 1 machine to make things simpler.
From here you will need to do a search to find your code’s DLL assembly file. Also, this folder may not appear until you first hit the SharePoint page that is using the code.