0

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

2
  • if it is not a misreported line number, could it be an error in a property setter that the debugger just does not step into? Commented Nov 15, 2016 at 21:36
  • I use try/catch just for fast fix . This code execute from online fiddleJs i have lot of res missed and eval staff. It is too much for perfect code debug... Commented Nov 15, 2016 at 21:50

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

1 Comment

please don't downvote if this is not the solution to your particular problem, as it might be the solution for other people searching for similar simptoms

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.