How to debug jScript for Dynamics CRM?

If you use a decent version of IE (I hope you do), you could use the developer tools (F12). They also contain a JavaScript console/debugger which got really usable in the meantime You have to select the file which should be inspected, set a breakpoint and start debugging See this article for an example: furnemont.eu/2010/06/how-to-series-easil....

If you use a decent version of IE (I hope you do), you could use the developer tools (F12). They also contain a JavaScript console/debugger which got really usable in the meantime. You have to select the file which should be inspected, set a breakpoint and start debugging.

See this article for an example: furnemont.eu/2010/06/how-to-series-easil....

That seems to be what I was looking for, thanks. I am using IE8 for that. (At home I am a Chrome addict).

– iDevlop Sep 7 at 7:55 1 @iDevlop: see the link which shows you an example. Dynamics CRM really feels faster with IE9 – ckeller Sep 7 at 8:12 1 I have no choice... I am on the client's site, pc's are running Windows XP, and IE9 only works with Vista and above. (Not to mention that "non IT" employees are still using IE6!).

But thx for the advice :-/ – iDevlop Sep 7 at 8:50 I also got a nice trick from Gareth Tucker's site (see the comments at the bottom): gtcrm.wordpress. Com/2011/09/05/… – iDevlop Sep 7 at 8:55.

For development of form scripts use the Xrm. Page Script Library Template described in the SDK topic Write Code for Microsoft Dynamics CRM Forms. The CRM team blog post JScript IntelliSense for Form Script Libraries provides an overview.

When you use this template, in addition to providing form specific IntelliSense, you can debug your scripts in Visual studio without uploading them as Web resources. This makes initial development and debugging easier. After you have it working, then create a JScript web resource and register it as a form event handler and test it in the application.At that point, use the technique described in the How-to series: Easily debug your CRM JavaScript code in IE8 (link in other answer) to debug your script using the IE developer tools.

The advantage of debugging your scripts outside of Microsoft CRM is simply that it is simpler. CRM loads many different scripts into the forms that it is sometimes tricky to isolate just your script.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions