Enter Update Rollup 15 - A Fix:
To address this scenario, Update Rollup 15 again alters the way script library files are loaded to ensure a reliable behavior and address dependency constraints. While script libraries now load in their intended order, the libraries are treated as dynamic script blocks making for an inconsistent debugging experience across browsers (debugging in Chrome? You won’t see them anywhere, although you can still do live debug by stepping into the functions or forcing a breakpoint in your code).
Form script load behavior by update:
Browser Debuggers: Dynamic script content is handled differently across the various browser debugging tools and even between versions. In the case of Chrome’s debugging tools, you won’t see dynamic script content at all. But have no fear! We’ll address circumvent this roadblock by simply traversing up the call stack by one call. Instead of breaking directly into your function, we’ll start from the point where CRM for script calls custom functions, then step into the custom function. These calls originate from FormScript.js.aspx.
Note: Another option is to use the debugger statement – by placing it anywhere in a script file it will tell the browser to force a breakpoint and pull open your debugger (as long as script debugging is enabled). This is not a desirable outcome for production code, so I suggest reserving this technique only for debugging in development environments. The remainder of this article walks through how to debug without using a debugger' statement, which should be appropriate in all deployment scenarios.
Debugging script libraries: Previous to UR15, you could simply launch the browser debugging tool, look for a named Web Resource file in the scripts list, and easily set a breakpoint to begin live debugging. In UR15, the process changes slightly:
That’s it! Hopefully, these tips have helped your post-UR15 script debugging efforts (and avoided an unnecessary headache). If you have further technical questions about how to debug, post comments or click email blog author. I am contemplating the creation of a video to walk through three or four common CRM debug scenarios. If you would find this valuable, please provide that feedback. As always, our team of Dynamics CRM PFE’s and Dynamics CRM Developer PFE’s are here to help, either remotely or onsite:
Follow me: @seanmcne
Microsoft Premier Field Engineer
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
|crminthefield: CRM Upgrade Best Practices||Blog bot||Dynamics CRM: Blogs||0||11.10.2012 00:11|
|crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 10||Blog bot||Dynamics CRM: Blogs||0||17.08.2012 03:27|
|crminthefield: How to Enable WCF Tracing for the CRM 2011 Outlook Client||Blog bot||Dynamics CRM: Blogs||0||08.11.2011 20:11|
|furnemont: How-to series: Send SMS messages from CRM 2011 (part 3)||Blog bot||Dynamics CRM: Blogs||0||13.06.2011 12:11|
|crminthefield: How to Create a Simple Webpage Leveraging The CRM 2011 IOrganizationService Web Service||Blog bot||Dynamics CRM: Blogs||0||19.05.2011 02:11|
|Опции темы||Поиск в этой теме|