Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Viewing console output from TVJS

Tags:

tvos

tvml

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?

like image 439
Graeme Avatar asked Oct 21 '15 20:10

Graeme


1 Answers

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.

like image 155
smwhr Avatar answered Oct 29 '22 12:10

smwhr