debugging view or filter functions in design documents
34 views
Skip to first unread message
Seung Chan Lim
unread,
Sep 27, 2014, 5:24:17 PM9/27/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mobile-c...@googlegroups.com
Hi,
Is anyone else using cblite on phonegap (iOS) and debugging views or filter functions in design docs?
I'm trying to figure out how to trace within such a function or at least do print statement style debugging.
I'm debugging directly on the iPhone with console access through safari web inspector.
Any tips you've learned would help me greatly
thank you
slim
Jens Alfke
unread,
Sep 27, 2014, 5:58:38 PM9/27/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mobile-c...@googlegroups.com
On Sep 27, 2014, at 2:24 PM, Seung Chan Lim <djs...@gmail.com> wrote:
I'm trying to figure out how to trace within such a function or at least do print statement style debugging.
Unfortunately there isn't a log( ) function in that context. :(
It wouldn't be hard to add one, though — it would be registered in -[CBLJSViewCompiler init], very much the same way as it already registers the emit( ) function. If someone wants to hook it up I'd gratefully accept a pull request.
—Jens
Igor Ievsiukov
unread,
Oct 1, 2014, 4:05:26 AM10/1/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mobile-c...@googlegroups.com
afaik 'log' function is not defined it default JS context in CBL iOS.