Nikola Lukic
Nikola Lukic

Reputation: 4244

Strange error message in dev tools - Chrome

I try too access object :

balance_Table.TEXTBOX.font

and everything is ok but program breaks in this line (top / last error msg in console) . Value is "24px Verdana" - this is regular .

look at this screenshot :

enter image description here

Upvotes: 0

Views: 236

Answers (1)

santiago arizti
santiago arizti

Reputation: 4737

It happens to me all the time. The problem has been that Chrome fails to report the correct line where the code is failing, but it should be a line around that number, give or take 15 lines or so.

What I do when part of the javascript is dynamically generated, is I copy all the source from Chrome and paste it in a syntax sensitive editor (I use PhpStorm, CTRL+SHIFT+ALT+INS inserts a scratch js file with syntax highlighting and correction), it usually finds the error very quickly for me, in case it is a missing semicolon or something like that.

Upvotes: 2

Related Questions