Skip to content

Instantly share code, notes, and snippets.

View KDawg's full-sized avatar

K KDawg

  • United States
View GitHub Profile
@KDawg
KDawg / iPhoneRemoteBrowser.md
Created October 31, 2012 15:52
iPhone Web Browser Remote Debug from Desktop

Remote debugging USB-connected iOS6 via Safari

Of course at the end of app development it's bug season. Testing on device is a big deal with some of these problems because they only happen on the resource-restricted device. Testing on device is everything when it's a mobile-specific web app.

In the past we've used various add in tools but with iOS6 it's all built in. Here are some notes helping remote debug from desktop to usb connected phone.

Safari Upgrade and OS X Versions

Safari 6 comes with "Mountain Lion" 10.5, but I'm on "Lion" 10.4 and the Safari upgrade doesn't appear to be automatic – you know how Apple likes to force upgrades. Easily worked-around, however, as Safari6 is hosted on Cnet here: http://download.cnet.com/Apple-Safari/3000-2356_4-34119.html

@KDawg
KDawg / DebugAndoirdWebAppRemote.md
Created October 24, 2012 22:57
Debug Android WebApp Over Remote Chrome from OSX

#Remote debugging USB-connected Android via Chrome

##Phone Setup

  • Requires a handset with modern Android (ala 4.X, etc)
  • settings => developer options => usb debug enable
  • phone => chrome => settings => developer tools => usb debug enable

##Desktop Setup - One Time Only

@KDawg
KDawg / gist:3704125
Created September 12, 2012 03:32
Anna Learns to Code With Addition
(function() {
var i;
var value;
var start = 1;
var end = 10;
var by= 1;
value = start;