tvostvml

Viewing console output from TVJS


I'm working with the tvOS beta 3 and trying to do some basic debugging on the tvml/tvjs side of things.

Messages logged via console.log(...) in my js files don't appear in the main Xcode output window.

Is there somewhere else I can find these messages or a setting which needs to be configured?


Solution

  • You should actually use the debug console in Safari. (The developer forum suggests you use Safari 9 and upgrade to El Capitan, both of which I have so haven't been able to test with inferior version)

    Open Safari > Develop menu > Simulator
    Your app name should appear here once and from there you can use the console.

    Give it a few seconds to appear, it's not always instantaneous.