Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
zuber
Visitor

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 4
belltown
Roku Guru

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.
0 Kudos
zuber
Visitor

Re: BrightScript Language Code Check

How can we test if we have error in code? How can I debug it?
0 Kudos
belltown
Roku Guru

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.
0 Kudos
EnTerr
Roku Guru

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