Skip to content

Instantly share code, notes, and snippets.

@cocolote
Created May 21, 2017 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cocolote/dbb87d51fd604a635d18f095a6311bf8 to your computer and use it in GitHub Desktop.
Save cocolote/dbb87d51fd604a635d18f095a6311bf8 to your computer and use it in GitHub Desktop.
steps to debug a web phone app

Debug Javascript mobile web app (linux)

  1. Plug your phoen with the USB cable to your computer
  2. Run usbmuxd with sudo

$ sudo usbmuxd

  1. Run idevice_id -l to check if the phone is reachable

$ idevice_id -l

  1. Pair the phone with your computer

$ idevicepair pair

  1. Now run the proxy to be able to connet to your phone browser

$ ios_weblit_debug_proxy --debug

  1. Open a browser on your computer and navigate to localhost:9221, you will find the device name on a list

Done! no you can use you computer browser to navigate thought your phone and troubleshoot any problems with the JS code and CSS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment