-
-
Save stigi/947051463dfb8055a9d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
MobileSafari_PID=$(ps x | grep "MobileSafari" | grep -v grep | awk '{ print $1 }') | |
if [ "$MobileSafari_PID" == "" ]; then | |
echo "Mobile Safari.app must be running in the Simulator to enable the remote inspector." | |
else | |
cat <<EOM | gdb -quiet > /dev/null 2>/dev/null | |
attach $MobileSafari_PID | |
p (void *)[WebView _enableRemoteInspector] | |
detach | |
EOM | |
open http://localhost:9999 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
don't forget to
chmod +x