1. #1
    Sencha User
    Join Date
    Jun 2007
    Posts
    43
    Vote Rating
    0
    stevebla is on a distinguished road

      0  

    Default Firebug not showing Javascript errors

    Firebug not showing Javascript errors


    Ext 3.0.0, Firefox 3.5, Firebug 1.4.2

    Firebug displays js errors normally, up to the point where a call to Ext.Ajax.request returns (i.e. to a callback function).
    The callback function executes normally, except that if there are any js errors in it, it fails silently without anything from Firebug.

    I have been using ExtJS with Firebug for over a year .. and this is the first for this one ... mysterious .. and frustrating.

  2. #2
    Ext User
    Join Date
    Feb 2009
    Posts
    37
    Vote Rating
    0
    mjaomaha is on a distinguished road

      0  

    Default fire bug errors

    fire bug errors


    I have noticed in firebug that the error handler doesn't show anything when a javascript exception is thrown, (the code actually catches an exception, but then throws it and it isn't handled). An uncaught javascript error displays properly.

    I haven't yet found a good way to find where the error is occurring other than to use the debugger and step through the code until it seems to go off track.

  3. #3
    Sencha User
    Join Date
    Jun 2007
    Posts
    43
    Vote Rating
    0
    stevebla is on a distinguished road

      0  

    Default Good suggestion

    Good suggestion


    I think you put your finger on the problem .. there is apparently a try/catch that is enclosing the callback function call in the Ext code, but not re-throwing errors it doesn't recognize.

    When I enclose my own code within a try/catch, I can display the error.

    This seems like an unfortunate feature of this particular Ext code .. it would be nice if it would re-throw anything it is not specifically looking for .. and let Firebug catch it.

    Thanks your your help!

  4. #4
    Sencha User carol.ext's Avatar
    Join Date
    Jun 2007
    Location
    Littleton, Colorado, USA
    Posts
    704
    Vote Rating
    30
    carol.ext has a spectacular aura about carol.ext has a spectacular aura about

      0  

    Default


    Have you set "Break on all Errors" in firebug?

  5. #5
    Ext User zhegwood's Avatar
    Join Date
    Dec 2007
    Location
    Boulder, CO Suburbia (Lafayette)
    Posts
    388
    Vote Rating
    1
    zhegwood is on a distinguished road

      0  

    Default


    I've found too that Firebug just breaks sometimes. Doesn't seem to be the case here, but restarting Firefox generally fixes this for me.

  6. #6
    Sencha User
    Join Date
    Jun 2007
    Posts
    43
    Vote Rating
    0
    stevebla is on a distinguished road

      0  

    Default


    Thanks Carol .. No .. I wasnt aware of that feature of Firebug .. but having just tried it, it does work.