Step by Step: Working with CRM2011 plugin profiler

Article ID: 2778280 - View products that this article applies to.

About Author:

Collapse this tableExpand this table
Collapse this imageExpand this image
2401266
This article is provided by MVP Lo Toong Yang. Microsoft is so thankful that MVPs who proactively share their professional experience with other users. The article would be posted on MVP's website or blog later.
Notice
Prerequisite:

Download the latest CRM SDK from download center, compile the plugin registration tool solution inside.

SDK5.0.12
Expand all | Collapse all

On This Page

Have you ever stuck in a situation where the plugin working perfectly in test environment but not the production environment?

Remote debugging might be a tricky setup in most of the production server because of the firewall constraint. We actually can debug the plugin without connecting to CRM server.

CRM2011 Plugin profiler provides the ability to capture user’s execution steps in the actual environment and replay it in plugin debugging mode.

More information

Assumed we have a sample plugin code that will generate account number during the record creation step. We registered in CRM system and wish to debug with profiler using Visual studio.
Follow the steps below to step into Visual Studio breakpoint.
  1. From the plugin registration tool, click the Install Profiler.

    Collapse this imageExpand this image
    2802380


  2. Once it finished, make sure Plugin Profiler exists.

    Collapse this imageExpand this image
    2802381
  3. Select the plugin step needed to debug, click Profiler to enable profiling.

    Collapse this imageExpand this image
    2802383
  4. Navigate to CRM system, perform the account creation which will trigger the plugin to be execute. Download the error log file and save in desktop.

    Collapse this imageExpand this image
    2802384
  5. Run the visual studio solution, attach debug process named "PluginRegistration". Set a break point in the code.

    Collapse this imageExpand this image
    2802385
  6. Open the plugin registration tool, click the Debug button.

    Collapse this imageExpand this image
    2802386
  7. Browse the profile location with the erro log we downloaded in item 4. Choose the assembly location and click start plugin execution.

    Collapse this imageExpand this image
    2802387
  8. System will auto step into visual studio breakpoint line.




Community Solutions Content Disclaimer

MICROSOFT CORPORATION AND/OR ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY, RELIABILITY, OR ACCURACY OF THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN. ALL SUCH INFORMATION AND RELATED GRAPHICS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT AND/OR ITS RESPECTIVE SUPPLIERS HEREBY DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THIS INFORMATION AND RELATED GRAPHICS, INCLUDING ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, WORKMANLIKE EFFORT, TITLE AND NON-INFRINGEMENT. YOU SPECIFICALLY AGREE THAT IN NO EVENT SHALL MICROSOFT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, PUNITIVE, INCIDENTAL, SPECIAL, CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF USE, DATA OR PROFITS, ARISING OUT OF OR IN ANY WAY CONNECTED WITH THE USE OF OR INABILITY TO USE THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN, WHETHER BASED ON CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY OR OTHERWISE, EVEN IF MICROSOFT OR ANY OF ITS SUPPLIERS HAS BEEN ADVISED OF THE POSSIBILITY OF DAMAGES.
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Properties

Article ID: 2778280 - Last Review: April 1, 2013 - Revision: 4.0
Applies to
  • Microsoft Dynamics CRM 2011
Keywords: 
KB2778280

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com