Field Solution
The Farm solution is hosted in the IIS auxiliary process (w3wp.exe) and will affect the entire farmCode. When debugging A SharePoint project whose "sandbox solution" property is set to "Farm solution", the system's Iis ApplicationProgramThe pool is recycled before Sharepoint is withdrawn or deployed to publish any files locked by the IIS auxiliary process. Only the IIS application pool of the website URL service for the SharePoint project is recycled.
Sandbox Solution
The Sandbox solution is hosted in the SharePoint user code solution auxiliary process (spucworkerprocess.exe) and runs only affects the code of the solution's website set. Because the sandbox solution does not run in the IIS auxiliary process, neither the IIS application pool nor the IIS server needs to be restarted. Visual Studio attaches the debugger to the spucworkerprocess. The spusercodev4 service in SharePoint automatically triggers and controls the process. The spucworkerprocess can load the latest version of the solution without recycling it.
Any type of solution
Visual Studio attaches the debugger to a browser to enable client script debugging regardless of the solution. To achieve this, Visual Studio uses the script debugging engine. To enable script debugging, you must change the default browser settings when receiving a system prompt.
Visual Studio only attaches the debugger to the w3wp or spucworkerprocess running the current website. In addition, Visual Studio also attaches a hosting com Plus and workflow debugging engine.