Answered by:
How to debug the CRM 2011 Online plugin

Question
-
Hi,
I am using the CRM 2011 Online deployment. If I want to put the breakpoint and debug the plugin in VS 2010 line by line how can i do this?
How can i handle the exceptions for Online plugins and what are the best practices.
Please guide me.
Yadav- Edited by Yadav MSCRM Technical Consultant Friday, September 16, 2011 5:04 PM
Friday, September 16, 2011 5:00 PM
Answers
-
You can't use process debugging in visual studio for CRM Online plugins but you have some options.
1. You could use sandbox registration with an on-premise CRM instance to mimic the online environment which would allow for standard debugging in Visual Studio.
http://msdn.microsoft.com/en-us/library/gg328574.aspx
2. Within Online you can use the ITracingService to get a lot of useful information.
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!- Proposed as answer by Jamie MileyModerator Friday, September 16, 2011 5:53 PM
- Edited by Jamie MileyModerator Friday, September 16, 2011 5:54 PM
- Marked as answer by Donna EdwardsMVP Thursday, September 22, 2011 4:20 PM
Friday, September 16, 2011 5:53 PMModerator
All replies
-
You can't use process debugging in visual studio for CRM Online plugins but you have some options.
1. You could use sandbox registration with an on-premise CRM instance to mimic the online environment which would allow for standard debugging in Visual Studio.
http://msdn.microsoft.com/en-us/library/gg328574.aspx
2. Within Online you can use the ITracingService to get a lot of useful information.
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!- Proposed as answer by Jamie MileyModerator Friday, September 16, 2011 5:53 PM
- Edited by Jamie MileyModerator Friday, September 16, 2011 5:54 PM
- Marked as answer by Donna EdwardsMVP Thursday, September 22, 2011 4:20 PM
Friday, September 16, 2011 5:53 PMModerator -
Here is a fantastic blog post on how to debug an online plugin:
http://guruprasadcrm.blogspot.ca/2011/11/how-to-debug-crm-2011-online-plugin.html
It sure has helped me!
Helen
Helen
- Proposed as answer by Damian Sinay Monday, March 26, 2012 1:53 AM
Monday, March 26, 2012 1:04 AM