Debugging using Visual Studio

While debugging using the Internet Explorer Developer Tool provides additional features for our efforts, developers have another option too. We can use Visual Studio for debugging in the same manner used for any other custom application. You will find this approach preferred when debugging custom plugins, but it is not limited to that.

Getting ready

In order to provide an example of using Visual Studio for debugging, we'll be using one of the existing solutions we created earlier in our recipes. In addition, in order to capture actual errors, add some intentional errors to your scripts.

How to do it...

The process of setting up Visual Studio for debugging is as follows:

  1. Insert the following debugger line in your JScript ...

Get Microsoft Dynamics CRM 2011 Scripting Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.