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.
Thanks Aslam for valuable information,
ReplyDeleteIn 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.