a1deaw
Last Updated: February 25, 2016
·
1.613K
· otupman
45975fcc42c585f7ddd9711e1f5198a7

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

1 Response
Add your response

13602
C30df7e143cbb783e20ca672f2b164f4

It looks like this issue was resolved in weinre in May 2013: https://issues.apache.org/jira/browse/CB-604

over 1 year ago ·