如何调试Dynamics CRM的jScript? [英] How to debug jScript for Dynamics CRM?
问题描述
是否有任何技巧或工具可用于调试您在Web资源中编写并附加到表单上的事件的jScripts?
我必须自定义Dynamics CRM 2011实例,其中包括编写一些jScripts。
我发现的最好的是点击我想看到发送给微软的错误。总比没有好,但我想必须有更好的东西?
谢谢!
Are there any tricks or tools for debugging those jScripts that you write in the web resources and attach to an event on a form ?
I have to customize a Dynamics CRM 2011 instance, which includes writing some jScripts.
The best I found until now is to click "I want to see the error that's being sent to Microsoft". Better than nothing, but I guess there must be something better ?
Thanks!
推荐答案
如果你使用一个不错的IE版本(我希望你这样做),你可以使用开发者工具(F12)。
它们还包含一个JavaScript控制台/调试器,它在此期间真正可用。
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.
参见这篇文章的例子: http://www.furnemont.eu/2010/06/how-to-series-easily-debug-your-crm- javascript-code-in-ie8
See this article for an example: http://www.furnemont.eu/2010/06/how-to-series-easily-debug-your-crm-javascript-code-in-ie8
这篇关于如何调试Dynamics CRM的jScript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!