Hi,

the following scenario seems more difficult to debug than it could be:

   I have rpcAsync call that returns without error from the backend, e.g. exc
   is NULL.

   Within the callback of this rpcAsync() call I had a runtime error
   (trying to call some method on an undefined variable):

    myHandler: function(dataNew,exc,id) {
       if (exc == null) {
           var test;
           test.setValue(5);  // runtime error from this
       }
       else {
           alert(exc);
       }


The result was, I believe, that myHandler was called again, this time with
exc set and resulting in something along the line "Local error 2".

I don't quite understand was is going on, but to the unsuspecting user (as
myself) it looked as if the backend did return an error (which it didn't).

I think it would be helpful if runtime errors in the callback would be more
easily be detectable (for example, by including a stack trace).

Cheers,
Fritz

-- 
Oetiker+Partner AG              tel: +41 62 775 9903 (direct)
Fritz Zaucker                        +41 62 775 9900 (switch board)
Aarweg 15                            +41 79 675 0630 (mobile)
CH-4600 Olten                   fax: +41 62 775 9905
Schweiz                         web: www.oetiker.ch

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to