-
Book Overview & Buying
-
Table Of Contents
Microsoft Dynamics CRM 2011 Scripting Cookbook
By :
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.
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.
The process of setting up Visual Studio for debugging is as follows:
Insert the following debugger line in your JScript code where you want to start debugging:
debugger;
Please note that using this also works in debugging using Internet Explorer.
Make sure the Disable script debugging option is unchecked in Internet Options as described previously.
When Internet...
Change the font size
Change margin width
Change background colour