Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve error: "undefined is null or not object ie in ext js" in IE?

I think its the cause of trailing comma, or syntax error, variable used without declaration. My js fiel is 1000 lines od code. Since the error is not provding me the line no. Its becoming dfficult to debug. Please help me with debugging techniques for IE. The script works very well with Firefox, Safari.

like image 695
Angelin Nadar Avatar asked May 24 '11 10:05

Angelin Nadar


4 Answers

I'd jslint the file. That will find the issue as well as any others you may have.

You can run it as a command line utility via node.

like image 186
wombleton Avatar answered Sep 19 '22 22:09

wombleton


include this <script type="text/javascript" src="https://getfirebug.com/firebug-lite-debug.js"></script> and <html debug="true"> will give you an firebug console
http://getfirebug.com/firebuglite#Debug

like image 42
Johan Olsson Avatar answered Sep 19 '22 22:09

Johan Olsson


For debugging in IE I would recommend you install DebugBar. This extension is similar to FireBug for Firefox.

like image 28
bjornd Avatar answered Sep 21 '22 22:09

bjornd


If you are developing through Microsoft Visual Studio I remember it will help you find trailing commas by highlighting the following } element with a green curly underline.

If you use the built-in developer tools in IE8 and later, you can step through your code in the browser and determine which line causes the error - starting from the top.

If you are not using any debugging tools in IE, then I will advise you to - just like Johan and bjornd are suggesting.

Happy hunting :)

like image 33
Chau Avatar answered Sep 21 '22 22:09

Chau