PhoneGap + weinre: remove your 'use strict's
Just a quick tip in case you're trying to debug PhoneGap with weinre: you'll need to strip out your "use strict" statements otherwise you'll get this:
Uncaught TypeError: Illegal access to a strict mode caller function.
Yup, Weinre doesn't support strict mode.
Me, I strip 'em out prior to a debug session with Weinre. Otherwise they're left in.
The only thing you'll need to be careful about is the behaviour of eval
and the arguments
; see the MDN's excellent page on this
Written by Oliver Tupman
Related protips
1 Response
It looks like this issue was resolved in weinre in May 2013: https://issues.apache.org/jira/browse/CB-604
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Mobile
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#