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: 
buenafe
Visitor

interactive brightscript command line?

Does there exist a interactive command line access to do simple brightscript code for learning the basics?
----------------------------------------------------------------------------------
current: two roku XDS 2xs, dtvpal, boxeebox, kylo.tv,
radar: wdlxtv.com
0 Kudos
2 REPLIES 2
destruk
Streaming Star

Re: interactive brightscript command line?

The debugger allows you to tell it to print stuff and create objects.
0 Kudos
RokuJoel
Binge Watcher

Re: interactive brightscript command line?

To get to the debugger, load a sample app from the SDK, and then telnet into your Roku on port 8085, then hit ctrl-break. On a Roku2 device, you may need to load the sample app twice, as ctrl-break sometimes exits the debugger the first time.

If you want a completely-from-scratch setup to work from, duplicate one of the example folders like simpleinfo, rename it, change the name of the project in the Makefile to the same name as your renamed folder (make sure not to leave a space on the end of the name) and replace the contents of the .brs file with:

sub main()
stop

end sub


Then when you load that channel you should go straight to the debugger and be able to experiment.

- Joel
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.