Debug Windows SharePoint Services Workflow

Source: Internet
Author: User
After we deploy and activate the workflow function, we can debug the workflow by opening the workflow project and attaching the process to w3wp.

Tip: To make debugging easier, we recommend that you develop workflow templates on servers running Microsoft Windows SharePoint Services 3.0.

AttachWindows SharePoint ServicesProcess to debug the Workflow

1. Install the workflow.

If you have installed the workflow and modified the manifest. xml file of the workflow, useStsadmUninstall and reinstall the workflow.

2. register the workflow assembly to the Global Assembly Cache (GAC ).

3. Restart IIS to make the modification take effect. The method is to execute it on the console.Iisreset.

4. AttachW3wpProcess:

A. OpenDebuggingMenu, selectAttach to process..

ClickAttachRight sideSelect, InDebug the following code types:SelectWorkflowAnd then clickOKToAttach to SettingsSetWorkflowCode.

B. SelectW3wpProcess clickAdditional.

Tip: IfW3wpThe process is not running. Open any Windows SharePoint Services page to activate the process.

Add a breakpoint to the workflow code.

Activate your workflow on the Windows SharePoint Services website.

When your assembly is loaded, the breakpoint will be activated, and the debugger will pause the code at the breakpoint.

From: http://www.cnblogs.com/xiaoshatian/archive/2006/12/19/597141.html

Related Article

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.