Out of range error in firebug console

529 views Asked by At

I am trying to debug ext-all-debug-w-comments.js file. The file is pretty big and when the error occurs, it says "TypeError: all.item(...) is null (151559 out of range 149122)"

Basically the error occurs at line number 151559 but only 149122 files are shown in firebug. Since all the lines are not loaded I cannot debug in firebug.

Please see below image for more information enter image description here

What should option I have here?

Thank you

2

There are 2 answers

0
Nikhil Kuriakose On BEST ANSWER

Is there a browser specific issue involved?

If not, you could use Chrome, it can handle bigger scripts compared to Firefox.

0
Alex Tokarev On

Use ext-dev.js instead. The ext-all- files are compiled versions with all classes available in Ext JS; ext-dev.js will load every class you use in a separate file. Slows down the app loading considerably so it's only suitable for debugging, but it also makes Ext JS a lot easier to debug.

In order to use ext-dev.js you'll need to set the paths to Ext JS and your custom classes using Ext.Loader.setPath, before the first classes are required -- at the top of your app.js would probably be the best place.

Another (better) way to manage dependencies is to use Sencha Cmd.