Answered by:
Debug JavaScript & Plugin in CRM 2013

Question
-
Respected Community Members,
As far as Debugging goes for CRM 2013, can some one point out any good article/instructions, How to Debug JavaScript & Plugin in CRM 2013??
Thanks,
Nick
Monday, March 3, 2014 3:53 PM
Answers
-
Hi Nick,
To debug JavaScript in CRM 2013, it's the same as debugging any other JavaScript. It's as simple as writing the work "debugger;" in your script and unchecking "Disable Script Debugging" from IE options. You might also want to have a look here at this article which explains debugging by IE http://msdn.microsoft.com/en-us/library/ie/gg699336(v=vs.85).aspx
To debug Plugins in CRM 2013, it's the same as CRM 2011 as well. You can have a look at this link to see how to do it http://blog.sonomapartners.com/2013/03/debugging-crm-2011-plugins-with-the-plugin-profiler.html
- Marked as answer by Nicksoft2011 Monday, March 3, 2014 7:16 PM
Monday, March 3, 2014 5:28 PM -
Thanks Dynamotion. I was able to debug same as CRM 4.0/2011. Since I have OnPrimise version, I did install Remote tool for visual studio 2012 Update 4 on CRM Server and able to debug without issue.
Thanks for the JavaScript. I may need to try this out with different JavaScripts.
- Marked as answer by Nicksoft2011 Tuesday, November 4, 2014 8:16 PM
Monday, March 3, 2014 7:16 PM -
I have been using this method combined with the CRM Web Resource Linker and found it to be the best way to debug and deploy web resources for CRM 2011-2013 so far:
Web Resource Linker:
- Edited by Juan R Trujillo Tuesday, November 4, 2014 7:01 PM
- Marked as answer by Nicksoft2011 Tuesday, November 4, 2014 8:16 PM
Tuesday, November 4, 2014 7:00 PM -
Thanks Juan for update on this. Eventually i started using that tool since long time now and i agree this tools helps a lot.
- Marked as answer by Nicksoft2011 Tuesday, November 4, 2014 8:16 PM
Tuesday, November 4, 2014 8:16 PM
All replies
-
Hi Nick,
To debug JavaScript in CRM 2013, it's the same as debugging any other JavaScript. It's as simple as writing the work "debugger;" in your script and unchecking "Disable Script Debugging" from IE options. You might also want to have a look here at this article which explains debugging by IE http://msdn.microsoft.com/en-us/library/ie/gg699336(v=vs.85).aspx
To debug Plugins in CRM 2013, it's the same as CRM 2011 as well. You can have a look at this link to see how to do it http://blog.sonomapartners.com/2013/03/debugging-crm-2011-plugins-with-the-plugin-profiler.html
- Marked as answer by Nicksoft2011 Monday, March 3, 2014 7:16 PM
Monday, March 3, 2014 5:28 PM -
Thanks Dynamotion. I was able to debug same as CRM 4.0/2011. Since I have OnPrimise version, I did install Remote tool for visual studio 2012 Update 4 on CRM Server and able to debug without issue.
Thanks for the JavaScript. I may need to try this out with different JavaScripts.
- Marked as answer by Nicksoft2011 Tuesday, November 4, 2014 8:16 PM
Monday, March 3, 2014 7:16 PM -
I have been using this method combined with the CRM Web Resource Linker and found it to be the best way to debug and deploy web resources for CRM 2011-2013 so far:
Web Resource Linker:
- Edited by Juan R Trujillo Tuesday, November 4, 2014 7:01 PM
- Marked as answer by Nicksoft2011 Tuesday, November 4, 2014 8:16 PM
Tuesday, November 4, 2014 7:00 PM -
Thanks Juan for update on this. Eventually i started using that tool since long time now and i agree this tools helps a lot.
- Marked as answer by Nicksoft2011 Tuesday, November 4, 2014 8:16 PM
Tuesday, November 4, 2014 8:16 PM