Debugging tips for newbies -- on the wiki

31 views
Skip to first unread message

Phil Mitchell

unread,
Apr 5, 2012, 12:41:03 AM4/5/12
to phonegap
I have just posted an Intro to PhoneGap Debugging on the wiki. Not
because I'm an expert -- definitely a newbie myself -- but because it
was the biggest lack I found when starting with PG a little while ago.
(I spent hours trying to figure out if I could set a javascript
breakpoint in Xcode.)

http://wiki.phonegap.com/w/page/16494768/Debugging%20PhoneGap%20Apps

I would definitely welcome any corrections or additions.

jxp

unread,
Apr 5, 2012, 3:41:22 AM4/5/12
to phon...@googlegroups.com

The two desktop PhoneGap mocks you mention are fairly limited.

I would suggest looking at;
 
1. the Ripple emulator (http://ripple.tinyhippos.com/) this runs as a Chrome plugin and provides a UI to enable you to provide data to PhoneGap API calls.
2. PhoneGap desktop https://github.com/jxp/phonegap-desktop. A pure javascript library, it allows you to return data from a json file for each PhoneGap API call. This allows pre-saved test data to be re-used. It is also written to be easily extendable to perform the same function for plugins. (BTW I wrote this library)

seasp...@gmail.com

unread,
Apr 5, 2012, 10:43:38 AM4/5/12
to phon...@googlegroups.com
Excellent! I meant to include Ripple, but didn't know about our plugin. Btw, anyone can edit the wiki :)

--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com



--
Learn Bird Songs, Support Conservation: http://www.larkwire.com
Bikewise: http://www.bikewise.org

WebSteve

unread,
Apr 5, 2012, 11:00:12 AM4/5/12
to phon...@googlegroups.com
"Depending on your app, you may want to include code that mocks the PhoneGap API,"
You probably mean to say,
"Depending on your app, you may want to include code that mimics the PhoneGap API,"

I'll add this to my PhoneGap links this Friday at
http://iphonedevlog.wordpress.com/phonegapcordova-crib-sheet/

Regards,
Steve

seasp...@gmail.com

unread,
Apr 6, 2012, 8:29:32 PM4/6/12
to phon...@googlegroups.com
Thanks, I've updated the wiki page with both of these suggestions.

--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
Reply all
Reply to author
Forward
0 new messages