On Thu, Jul 1, 2010 at 10:56 AM, Judah McAuley <ju...@wiredotter.com> wrote: > > That's interesting, Robert. I actually have a paid subscription to the > Ext library but haven't seen this. Does this actually help show where > the error is *in my code*? Because that's the problem I've always had > with Ext. I'll miss a comma or brace or mistype the option or some > such and then one of two things happens: > > 1: Absolutely nothing. This problem isn't specific to Ext, it is a > common problem I've seen across most javascript. If you get an > attribute name wrong or something it just ignores it and goes on, not > throwing an error, it just doesn't work.
It doesn't help this problem, but I find I can largely eliminate these issues by running my code through jslint.com. hugely helpful tool. > 2: Throws an error but the error is within the main Ext library > instead of pointing to an error in the code that I was writing that > actually triggered the error. This is what the source includes help with. Instead of getting an error on line 6003 of ext-all.js that the JS debugger can't even load, you get an error in, for example, Panel.js, which the debugger is easily able to load and show you. It also helps you use the stack trace and step through the code method by method. Basically you can't do any of this stuff with the internal Ext code without using the source includes. Here is an example. I had a problem with a grid layout that persisted for months. I was not able to track down the exact problem until I used the source includes. Once I had the source includes, I stepped through the stack trace and solved the problem in an hour. Unbelievable difference ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:322502 Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-community/unsubscribe.cfm