To debug the sandbox solution you should attach SPUCWorkerProcess.exe process. Then start debugging the Sandbox solution.

By default Visual Studio 2010 automatically builds the solution package, deploys it, and activates it in the Solution Gallery.  When you start debugging already deployed sandbox solution, you need to attach the SPUCWorkerProcess.exe  process manually and hit F5 to debug.

Similar Topics:

Tags:

how to debug sandbox solution in sharepoint 2010how to debug sandbox solution