cancel
Showing results for 
Search instead for 
Did you mean: 

Debuger error in 3.3g [Solved]

michaelc
Champ on-the-rise
Champ on-the-rise
trying to use the javascript debugger but I find it throws an error.
  org.mozilla.javascript.ecmaerror typeerror cannot read
  property "alfresco" from header.get.js#30(eval)#1

    Line 30 ( I have not changed anything yet )
         favourites = eval('try{(prefs.' + PREF_FAVOURITE_SITES + ')}catch(e){}')

  whats the issue.
         I commented the line out and it seems to work now.
3 REPLIES 3

mikeh
Star Contributor
Star Contributor
It's a quirk of the Rhino debugger. Even though we wrap the JavaScript in a try…catch block, it still throws the exception out. You can safely ignore it - it's just an annoyance.

Thanks,
Mike

michaelc
Champ on-the-rise
Champ on-the-rise
does that mean that anywhere an error is thrown and caught it will error unless I comment it out ?

mikeh
Star Contributor
Star Contributor
Yes, but only if you're running the debugger. There is a menu option to switch off this behaviour, but I can only assume Mozilla didn't implement it.

Thanks,
Mike