Debug Web parts

Source: Internet
Author: User

From http://www.cnblogs.com/BigSeal/archive/2004/10/08/49738.html? Login = 1 # post

1. Set breakpoints
1. Make sure that the project output path is located in the bin folder under the root directory of the SharePoint site.
2. Load the Web Part Program Set registration as a security control

2. Add an ASP. NET Process
1. Manually attach a process
Debug-> process-> set w3wp.exe as an additional process and select the CLR check box
2. Use the startup URL and automatically attach it to the Process
Project properties-> Configuration properties-> debugging-> enable ASP. NET to set debugging to true, debug mode to URL, and start URL to Web Part page containing Web parts.
3. Open the website's web. config file <System. Web> T tag, <Compilation batch = "false"/> Label, change it <Compilation batch = "false" DEBUG = "true"/> .

Iii. debugging

    1. In the Web. config file, search for<SharePoint>Tag.
    2. In<SharePoint>Tag, locate<Safemode maxcontrols = "50" callstack = "false"/>Tag and change it<Safemode maxcontrols = "50" callstack = "true"/>.
    3. In the Web. config file, search for<System. Web>Tag.
    4. Within<System. Web>Tag, locate<Customerrors>Tag and change it<Customerrors mode = "off">.

Note: You can change <trust level = "wss_mimum" originurl = ""/> in Web. config to <trust level = "wss_medium" originurl = ""/>

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.