{"id":3315,"date":"2016-07-20T18:24:11","date_gmt":"2016-07-20T12:54:11","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=3315"},"modified":"2016-07-20T18:24:11","modified_gmt":"2016-07-20T12:54:11","slug":"steps-to-enable-script-debugging-for-dynamics-crm-outlook-client-in-visual-studio","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2016\/07\/steps-to-enable-script-debugging-for-dynamics-crm-outlook-client-in-visual-studio\/","title":{"rendered":"Steps to Enable Script Debugging for Dynamics CRM Outlook Client in Visual Studio"},"content":{"rendered":"<p style=\"text-align: justify;\">We can debug the Script used in Outlook using Visual Studio. For this, we just need to change some settings in the \u201cAdvance setting\u201d section of Internet Explorer.<\/p>\n<p style=\"text-align: justify;\">In this blog, we will show how to enable Script Debugging\u00a0using the Visual studio.<\/p>\n<p style=\"text-align: justify;\">For this, we have developed the sample code. So, here we have added the ribbon button named as \u201cView address\u201d on the account entity. The button is used to open a pop-up box, which will show the address of current Parent Contact Selected on account. Please see the below screenshot.<a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/07\/Debugging-for-CRM-Outlook-Client-1.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-3319\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/07\/Debugging-for-CRM-Outlook-Client-1.png\" alt=\"Debugging for CRM Outlook Client\" width=\"465\" height=\"194\" \/><\/a><\/p>\n<p>So, this functionality works fine on the web browsers as you can see in the above screenshot. But when we tested it in CRM Outlook client, we got the blank window as shown below.<a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/07\/CRM-outlook-client-2.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-3316\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/07\/CRM-outlook-client-2.png\" alt=\"CRM outlook client \" width=\"534\" height=\"248\" \/><\/a><\/p>\n<p>So to find out the root cause, we need to debug the script in Outlook. In order to enable the debugging in Outlook, we can follow the below steps. Using these steps, we can debug the script used for Outlook in Visual studio.<\/p>\n<p><strong>Steps To Debug the Script in Visual Studio:<\/strong><\/p>\n<ol>\n<li>Open the IE (Internet Explorer), go to Settings &gt;&gt; Internet options<a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/07\/steps-to-debug-script.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-3321\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/07\/steps-to-debug-script.png\" alt=\"steps to debug script\" width=\"546\" height=\"311\" \/><\/a><\/li>\n<\/ol>\n<ol start=\"2\">\n<li>Go to Advance section and uncheck the \u201cDisable Script Debugging\u201d options and then click OK. Please see the below screenshot:<a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/07\/Disable-Script-Debugging-4.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-3320\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/07\/Disable-Script-Debugging-4.png\" alt=\"Disable Script Debugging\" width=\"354\" height=\"448\" \/><\/a><\/li>\n<\/ol>\n<ol start=\"3\">\n<li>Then go to the Script and put the \u201cdebugger\u201d in the function which you want to debug. Please see the below screenshot.<a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/07\/debuger-5.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-3318\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/07\/debuger-5.png\" alt=\"debuger\" width=\"540\" height=\"115\" \/><\/a><\/li>\n<\/ol>\n<p style=\"text-align: left;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0In the above screenshot you can see, we want to debug the getBillToAddress() function. So, we have placed debugger in the \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 getBillToAddress function.<\/p>\n<ol start=\"4\">\n<li>Then go to Outlook, open Account record, and click on View Address button. You will get the Visual Studio Just-In-Time Debugger Prompt to select the debugging engines. Please see the below screenshot.<a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/07\/Visual-Studio-Just-In-Time-Debugger-6.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-3322\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/07\/Visual-Studio-Just-In-Time-Debugger-6.png\" alt=\"Visual Studio Just-In-Time Debugger\" width=\"527\" height=\"445\" \/><\/a><\/li>\n<\/ol>\n<p>If you click on Yes button, you will be able to debug your script in Visual Studio. Please see the below screenshot.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/07\/debug-your-script-in-Visual-studio-7.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-3317\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/07\/debug-your-script-in-Visual-studio-7.png\" alt=\"debug your script in Visual studio \" width=\"536\" height=\"256\" \/><\/a><\/p>\n<p>In this way, you can easily enable debugging for CRM Outlook Client in Visual Studio.<\/p>\n<p><span style=\"color: #993300;\">Maps for personal use, why not for business? Know more at <a style=\"color: #993300;\" href=\"http:\/\/www.maplytics.com\" target=\"_blank\" rel=\"noopener noreferrer\">www.maplytics.com<\/a>\u00a0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We can debug the Script used in Outlook using Visual Studio. For this, we just need to change some settings in the \u201cAdvance setting\u201d section of Internet Explorer. In this blog, we will show how to enable Script Debugging\u00a0using the Visual studio. For this, we have developed the sample code. So, here we have added\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2016\/07\/steps-to-enable-script-debugging-for-dynamics-crm-outlook-client-in-visual-studio\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[15,19,24,41,66],"tags":[487,489,490],"class_list":["post-3315","post","type-post","status-publish","format-standard","hentry","category-development","category-dynamics-crm","category-dynamics-crm-2016","category-outlook-client","category-web-resources-2","tag-debug-the-script-using-the-visual-studio","tag-debugging-dynamics-crm-for-outlook","tag-debugging-javascript-with-microsoft-dynamics-crm"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/3315","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=3315"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/3315\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=3315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=3315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=3315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}