Answered by:
Debug plugin ms crm 2011 ms visual 2010 ?

Question
-
help me!!Wednesday, August 17, 2011 7:00 AM
Answers
-
The only way a debug message will show to the user is if you make use of the ITracingService AND you throw and InvalidExecutionException in the plugin.
Gonzalo | gonzaloruizcrm.blogspot.com
- Proposed as answer by Gonzalo Ruiz RModerator Monday, August 22, 2011 12:11 PM
- Marked as answer by Jim Glass Jr Friday, August 26, 2011 6:47 PM
Thursday, August 18, 2011 12:13 PMModerator
All replies
-
What is your problem while debuggingWednesday, August 17, 2011 7:07 AM
-
Hi,
To debug a plugin you must have to deploy your plugin .dll and .pdb files file into the disk at location <Microsoft Dynamics CRM Install Dir>\Server\bin\assembly and then can attach the w3wp.exe proces sin visual studio, for complete instructions you may reffer: http://weblogs.asp.net/pabloperalta/archive/2010/12/01/how-to-remote-debug-dynamics-crm-plugins-and-workflow-assemblies.aspx
http://crmbusiness.wordpress.com/2011/06/03/crm-2011-how-to-set-up-remote-debugging-for-plugins/
http://msdn.microsoft.com/en-us/library/gg328574.aspx
Jehanzeb Javeed
http://worldofdynamics.blogspot.com
Linked-In Profile |CodePlex Profile
If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".- Proposed as answer by Jehanzeb.Javeed Wednesday, August 17, 2011 7:10 AM
Wednesday, August 17, 2011 7:10 AM -
Is this by chance for CRM 2011 Online? If so, you will want to set up a local on premise CRM and attach the debugger to the sandbox worker process after registering the plugin in sandbox mode.
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!Wednesday, August 17, 2011 2:27 PMModerator -
You can also use the ITracingService for debugging purposesWednesday, August 17, 2011 5:58 PM
-
no log in break poins while go in form of entity. I can debug plugin with show message show in form?????
Thursday, August 18, 2011 3:13 AM -
The only way a debug message will show to the user is if you make use of the ITracingService AND you throw and InvalidExecutionException in the plugin.
Gonzalo | gonzaloruizcrm.blogspot.com
- Proposed as answer by Gonzalo Ruiz RModerator Monday, August 22, 2011 12:11 PM
- Marked as answer by Jim Glass Jr Friday, August 26, 2011 6:47 PM
Thursday, August 18, 2011 12:13 PMModerator -
thanks Gonzolo...
Monday, August 22, 2011 10:35 AM -
Hi,
ITracingService is useful while debugging a plugin for CRM 2011 online deployment as it will not allow to attach the Sandbox Services and IIS W3wp.exe process. I would suggest you to have a look in the Url below for reviewing different debugging available otpions:
http://msdn.microsoft.com/en-us/library/gg328574.aspx
Jehanzeb Javeed
http://worldofdynamics.blogspot.com
Linked-In Profile |CodePlex Profile
If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".Monday, August 22, 2011 10:42 AM