Mysterious FireBug Error Repeats with ExtJS

When debugging ExtJS 4 (we tried both versions 4.1.0 and 4.1.1), FireBug repeatedly shows the following error: An invalid or illegal string was specified http://docs.sencha.com/ext-js/4-1/extjs/ext-all.js Line 18 . It does not interrupt the error, although this parameter is specified. In addition, neither my code, nor ext-debug.js and its loader seem to actually call ext-all.js.

This error is logged in the Firebug console about once per minute, which is annoying. My concern is that I cannot miss a mistake. Is this a FireBug bug? ExtJS Error? Aliens? How to debug a debugger?

+7
source share
2 answers

I had the same problem before and solved it by deleting the special character at the end of my JS file! ( app.js I think)

It was strange, but the problem came from hidden special characters, such as: Paperless paperless or Sign from right to left .

Open another JS file, but don't copy / paste your code there. Just write again and check if the problem exists.

And do not forget to check your details if you have them. This article explains the problem: http://www.ashorlivs.fr/javascript-jquery/article/an-invalid-or-illegal-string-was

+1
source

For general debugging see this link http://www.sencha.com/learn/debugging-ext-js-applications/ You can also use ext-all-dev.js in design mode. There is another great tool on top of firebug, at this link http://www.illuminations-for-developers.com/

PS: I still do not understand how to post a comment. This probably happens when I have more points / reputation. Hence adding it as an answer. thanks.

0
source

All Articles