We can debug the Script used in Outlook using Visual Studio. For this, we just need to change some settings in the “Advance setting” section of Internet Explorer.
In this blog, we will show how to enable Script Debugging using the Visual studio.
For this, we have developed the sample code. So, here we have added the ribbon button named as “View address” 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.
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.
Steps To Debug the Script in Visual Studio:
- Go to Advance section and uncheck the “Disable Script Debugging” options and then click OK. Please see the below screenshot:
- Then go to the Script and put the “debugger” in the function which you want to debug. Please see the below screenshot.
In the above screenshot you can see, we want to debug the getBillToAddress() function. So, we have placed debugger in the getBillToAddress function.
- 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.
If you click on Yes button, you will be able to debug your script in Visual Studio. Please see the below screenshot.
In this way, you can easily enable debugging for CRM Outlook Client in Visual Studio.
Maps for personal use, why not for business? Know more at www.maplytics.com