how can I debug that?

103 views
Skip to first unread message

Paul Libbrecht

unread,
Feb 29, 2012, 2:53:00 PM2/29/12
to iPhoneWebDev

Hello mobile-web experts,

This is my first post here, a community I expect to be open away from
the "closed world" Apple is keeping around iPad (to my taste). Please
apologize if I do not respect netiquette.

My problem: Since iOS5 came out, the Curriki search, based on ExtJS,
stopped working for its users. This is quite annoying and I found no
way to find how to debug it.
The URL is http://www.curriki.org/xwiki/bin/view/Search/ it works on
any other browser I could test but iOS5's Safari.

I tried with the iPad simulator, activated the web-logging in the
settings, then could see the error:
> JavaScript: Error
> undefined
> TypeError: 'undefined' is not an object
which has the effect that the search results are not displayed.

Most of the other logging lines display a location in the JS source
but that line does not.

I also tried to activate debugging using iwebinspector.com but that
failed somehow (no error, never stopped at a breakpoint).

Is there another method I can use to debug?
Is there a better way to track such an error?

thanks for hints

paul

Remi Grumeau

unread,
Feb 29, 2012, 3:18:21 PM2/29/12
to iphone...@googlegroups.com
hu hu .... in this situation, console.log() is your only friend :(
There is a lot of new behavior with iOS5 Safari, be prepare to find out others

Remi



paul

--
You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group.
To post to this group, send email to iphone...@googlegroups.com.
To unsubscribe from this group, send email to iphonewebdev...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en.


Stan Wiechers

unread,
Feb 29, 2012, 3:22:52 PM2/29/12
to iphone...@googlegroups.com
how about weinre, worked fine for me in the past. 

--
"Local color. Soak it up"
Virginia Vidaura

http://www.merkwelt.com/people/stan/

Paul Libbrecht

unread,
Feb 29, 2012, 3:41:24 PM2/29/12
to iphone...@googlegroups.com
That I had not discovered. Looks cool.
Can you add breakpoints there?
Is there a half-decent version that works with prototype 1.6?

thanks in advance

paul

Stan Wiechers

unread,
Feb 29, 2012, 4:21:19 PM2/29/12
to iphone...@googlegroups.com
I don't think you can set breakpoints, but you have very powerful logging and the console lets you introspect anything you want.

Paul Libbrecht

unread,
Feb 29, 2012, 4:39:05 PM2/29/12
to iphone...@googlegroups.com
Both I had with iWebInspector,

but this hasn't been enough for me to find out.
I suspect this can happen inside the ExtJS obfuscated code or even in the safari-internal code (we had exactly that problem on Firefox 9 on desktop and mobile: the console code).

paul

Paul Libbrecht

unread,
Apr 9, 2012, 6:41:14 PM4/9/12
to iphone...@googlegroups.com
Maybe it is helpful that I inform the list of the outcome of this issue: the problem was printf which was given an undefined variable. 

That variable started to become undefined after the iOS5 upgrade because Safari's parsing of dates became more strict. Changing the server to output an iso-8601 date made it work (just for modern browsers though, others had to keep the older date-format).

thanks for listening ;-)

paul
Reply all
Reply to author
Forward
0 new messages