Friday, December 29, 2017

Debugging JavaScript in Dynamics 365 Outlook App

Here's a quick tip on how to debug your custom JavaScript code in the Dynamics 365 App for Outlook
  1. Right-click in the page/form shown by the Dynamics 365 app and select the Debug option.
  2. Select Visual Studio as the debug tool to use.
  3. In Visual Studio, in the Exception Settings window, select all options/boxes for the JavaScript Runtime Exceptions option.
  4. In Visual Studio, press F5 to continue running the Outlook App. Perform an operation that leads to the exception/error in your code or to a "debugger" statement that you've added to the code.
  5. You can then proceed to step through the code, get variable values, etc.