Right Stuff

logo

Tuesday, November 9, 2010

Debugging of JS in MS CRM 4.0

To debug a JS of MSCRM 4.0


First Step

Go to Tools --> Internet Options --> Under Advance tab uncheck "Disable Script Debugging (Internet Explorer)"


Second Step

Whenever you place any JS on any of the event in a form. Just type debugger at the start of the Js

Ex: debugger;

var Feild = crmform.all.feildname.value

if (----)
{
---
---
}

When published entity is run at that time a window will pop up depending upon the events, saying to debug the Js in MS Visual Studio.

1 comment:

  1. Thanks Aslam for valuable information,

    In addition "debugger;" is applicable to all javascript codes for any web application or web site. It can be dbugged in Visual studio or IE inbuilt debugger.

    ReplyDelete