Debugging a TVML tvOS App

If you download and open the Readme.md of the TVML Catalog

To help debug and experiment, you can use the Safari WebInspector to attach to the JavaScript context. WebInspector provides you with a full JavaScript debugging environment. You will need to turn on the Develop menu from Safari > Preferences > Advanced. Select your device from the Develop drop down menu to see a list of running JavaScript contexts.

You will need to download Safari 9.

Start your client app

python -m SimpleHTTPServer 8000

Run your Xcode app.

Now open Safari

Turn on the Develop tab, explained above.

Then go to the Simulator | <App>

Develop MenuSimulator

Now you will see the Web Inspector.

Web Inspector

Debug to your hearts content.

Advertisements
  1. That was great! Thank you! 😀

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: