@tienn2t,
Currently it is not possible as far as I know. You could use the emulator and test on it to some extend. If you want to test on real device,
Use some remote debugger like
jsconsole.com, that can get you the console.log from your TV application. It also facilitate running code onto your application
Use NewRelic or similar to analyze you application performance and execution time.
Just keep guessing what would be happening behind, ie, blackbox testing