Sorry maybe i was a bit unclear. the problem is not what happens
server side (which would trigger ontimeout or onerror, but the problem
is that after the handler receives the return data i do some
processing on it. it is in this processing that my bug is. its just
really hard to find it when i dont get any error message whatsoever.

i tried this (which works in "real" python):

onRemoteResponse(x,y):
    try:
        do_this_and_that_with_the_return_data_bla_bla()
    except:
        import traceback
        Window.alert(traceback.format_exc())

But it doesnt work. having a look in the pyjamas traceback code now
and it contains:

import sys

def format_exception(etype, value, tb, limit=None):
    return sys._get_traceback_list(value, tb, limit=limit)

sounds like it might do what i hope, but then what do i pass into it
as variable????
halp
G

On Wed, Feb 22, 2012 at 5:44 PM, lkcl luke <[email protected]> wrote:
> On Wed, Feb 22, 2012 at 4:56 PM, Gustaf Nilsson <[email protected]> wrote:
>> ohai
>>
>> if my jsonrpc handlers make a doodoo then i dont get any feedback at all.
>> i suspect that theres a try: ... except: pass in there somewhere.
>
>  hmmm, should do.
>
>> Is there something i can pass along when i make the call to not do that?
>
>  naah.
>
>> would make my debugging much easier
>
>  there's onTimeout, which you should really also be covering.  and
> there's onError as well... check HTTPRequest.py as well as
> JSONService.py, see what's going on.
>
>  l.



-- 
■ ■ ■ ■ ■ ■ ■ ■ ■ ■

Reply via email to