SharePoint debugging and diagnostics series-Attach methods for different debugging objects in the Development Environment

Source: Internet
Author: User

Debugging different objects in the development environment of SharePoint sometimes requires attach to different processes. Below are some common situations:
1. Farm solution ----- w3wp. exe
2. Sandbox Solution-----PUCWorkerProcess.exe,
3. Use the sandbox Solution--SPUCWorkerProcessProxy.exe of Full-trust proxy
4. Feature receivers ---- feature cycler is automatically started by Visual Studio by default. You can change this setting in the deployment settings of Visual Studio.
4.1. activation/deactivation of feature receivers: depending on how it is activation/deactivation, You need to attaching to different processes.
• Start or stop ---- w2wp. EXE on the web interface
• Start or stop ---- powershell.exe in powershell
4.2 featureinstalled/featureuninstalling/featureupgrading of feature receivers (installation/uninstall/upgrade) ----- owstimer.exe

(In attach's owstimer.exe, note that your breakpoint may not be immediately hit, because their execution depends on the start of the timer job. When the timer job calls these feature referers, their breakpoints will be hit, so you may have to wait for a while)

Debugging different objects in the development environment of SharePoint sometimes requires attach to different processes. Below are some common situations:
1. Farm solution ----- w3wp. exe
2. Sandbox Solution-----PUCWorkerProcess.exe,
3. Use the sandbox Solution--SPUCWorkerProcessProxy.exe of Full-trust proxy
4. Feature receivers ---- feature cycler is automatically started by Visual Studio by default. You can change this setting in the deployment settings of Visual Studio.
4.1. activation/deactivation of feature receivers: depending on how it is activation/deactivation, You need to attaching to different processes.
• Start or stop ---- w2wp. EXE on the web interface
• Start or stop ---- powershell.exe in powershell
4.2 featureinstalled/featureuninstalling/featureupgrading of feature receivers (installation/uninstall/upgrade) ----- owstimer.exe

(In attach's owstimer.exe, note that your breakpoint may not be immediately hit, because their execution depends on the start of the timer job. When the timer job calls these feature referers, their breakpoints will be hit, so you may have to wait for a while)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.