Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
zuber
Level 7

BrightScript Language Code Check

How can I test my code before I load it on the device itself?
like any console output?
0 Kudos
4 Replies
Highlighted
belltown
Level 7

Re: BrightScript Language Code Check

"zuber" wrote:
How can I test my code before I load it on the device itself?
like any console output?

You can't. The code won't run unless it's loaded onto a Roku device.
https://github.com/belltown/
0 Kudos
Highlighted
zuber
Level 7

Re: BrightScript Language Code Check

How can we test if we have error in code? How can I debug it?
0 Kudos
Highlighted
belltown
Level 7

Re: BrightScript Language Code Check

"zuber" wrote:
How can we test if we have error in code? How can I debug it?

You use the Roku Debugger: https://sdkdocs.roku.com/display/sdkdoc/Debugging+Your+Application

If you're using the Eclipse IDE, it apparently has an interface to the Roku Debugger.

If you're not using Eclipse, and developing on a Mac, I think there's something called Terminal you can use to connect to the Roku Debugger.

If you're not using Eclipse (or even of you are), and you're developing on Windows, you can use the built-in Windows Telnet client, or the PurpleBug Roku Debugger Interface: http://belltown-roku.tk/PurpleBug, developed specifically for debugging Roku channels on Windows computers.
https://github.com/belltown/
0 Kudos
Highlighted
EnTerr
Level 9

Re: BrightScript Language Code Check

There is no emulator (akin to Android one) nor simulator (akin to iOS one) to test against - you have to test it on the device itself. Telnet to port 8085 for console.
0 Kudos