Forum Discussion
7 Replies
- ferdiworksRoku Guru
If you want a tool to create an SDK channel without VS code
You can try the new wizard tool that should alleviate some of the anxiety of converting a Direct Publisher channel to a SceneGraph channel or creating a new SDK channel. The tool can be found on GitHub. https://github.com/rrirower/DP2SceneGraphWizard
- philanderson777Roku Guru
Hey Twisha how are you?
If you install VSCode and install the 'Brightscript' Extension you should be able to run the sample app using Run (F5) which allows you to build a 'launch.json' file which allows your VSCode to build a zip file from your code then push the zip file to your Roku TV in order to run the app.
Once you have this step working, you can then add breakpoints in your code to view variables etc and debug your code
You can also run a shell and view debug output which is created in code using the 'print' command in your brightscript code and is viewed from the shell using
telnet <<ROKU TV IP ADDRESS>> 8085
Links
Add brightscript extension
https://rokucommunity.github.io/vscode-brightscript-language/installation.html
View output either in VSCode (automatic) or you can launch a separate shell
https://developer.roku.com/en-gb/docs/developer-program/getting-started/hello-world.md
Samples
https://github.com/rokudev/samples/tree/master/getting%20started
Hope that helps
Phil
- TwishaChannel Surfer
Thanks Phil
But I'm still unable to debug from vs code using extension it's not recognizing the command also I can find how can I setup and run sample projects but I cannot find any source which explains how to create project from beginning also as there any course available on Udemy for Roku channel development?
Thanks in advance
Twisha- philanderson777Roku Guru
OK so there are a couple of things you can try
Firstly are you able to find the IP address of your Roku TV. You should be able to find this in Roku Settings, Network, About
Secondly using Chrome browser are you able to navigate to this IP address? http://<<ROKU IP>>
Thirdly if you take a sample project and manually zip (compress) it on your computer, are you able to upload it to the Roku TV and get the sample app to run? You click 'Upload' to find the ZIP you created, then click 'Replace with Zip' to run the sample app
Note : when you are zipping up the sample project, don't zip the parent folder but zip the files in the folder instead
So you are bypassing VSCode completely just to be sure you can run a sample app
Roku resources are scarce
Thanks
Phil