Answered by:
CRM 2011 plugins Debugging

Question
-
Hi, I am trying to debug CRM 2011 plugins and attaching them to w3wp.exe, which is how it was done in CRM 4.0 , but I notice that attaching to the debugger takes and unusually long time as compared to CRM 4.0 eveytime the plugin is changed , which is quite a task to work with. Does any one know how to make this quicker ?
ShonakThursday, March 24, 2011 10:40 AM
Answers
-
I've noticed that if you attach the debugger to w3p and then attempt to step into an area for which you don't have symbols loaded that performance then tanks for the disassembled MSIL. It then seems to get stuck that way (even if on subsequent attaches you don't step out of bounds for the symbol file) until you restart Visual Studio. Not sure if this is what you're encountering but thought I'd mention it as a possibility.
- Proposed as answer by Jamie MileyModerator Monday, March 28, 2011 1:38 AM
- Marked as answer by Jamie MileyModerator Monday, February 13, 2012 7:19 PM
Saturday, March 26, 2011 12:13 AM -
There is the tool from codeplex which can be used for debugging / testing the plug-ins.
See the link below:
http://crm2011plugintest.codeplex.com/
- Proposed as answer by Jamie MileyModerator Thursday, May 19, 2011 6:54 PM
- Marked as answer by Jamie MileyModerator Monday, February 13, 2012 7:19 PM
Thursday, May 19, 2011 6:04 PM
All replies
-
You can test the web service calls being made prior to putting them in your plugin code. Otherwise your w3wp.exe method is the best way to my knowledge.
Jamie Miley
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!Thursday, March 24, 2011 1:37 PMModerator -
I am not using the web services , I am directly working with the CRM entities via XRM .
ShonakFriday, March 25, 2011 9:30 AM -
But that code proxy is still using the web services. I am just saying that the operations you are trying in code could potentially be pulled out into a different windows/web/whatever app in .NET and tested separately prior to putting the code into the plugin. Other than the w3wp method, I am not aware of many other ways of testing plugin's besides watching what they do in the platform trace tool.
Jamie Miley
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!- Proposed as answer by Jamie MileyModerator Monday, March 28, 2011 1:38 AM
Friday, March 25, 2011 2:24 PMModerator -
I've noticed that if you attach the debugger to w3p and then attempt to step into an area for which you don't have symbols loaded that performance then tanks for the disassembled MSIL. It then seems to get stuck that way (even if on subsequent attaches you don't step out of bounds for the symbol file) until you restart Visual Studio. Not sure if this is what you're encountering but thought I'd mention it as a possibility.
- Proposed as answer by Jamie MileyModerator Monday, March 28, 2011 1:38 AM
- Marked as answer by Jamie MileyModerator Monday, February 13, 2012 7:19 PM
Saturday, March 26, 2011 12:13 AM -
There is the tool from codeplex which can be used for debugging / testing the plug-ins.
See the link below:
http://crm2011plugintest.codeplex.com/
- Proposed as answer by Jamie MileyModerator Thursday, May 19, 2011 6:54 PM
- Marked as answer by Jamie MileyModerator Monday, February 13, 2012 7:19 PM
Thursday, May 19, 2011 6:04 PM