Skip to main content

[Roku Development] Debugging Roku Code - Visual Studio Code


For ease of debug instead of terminal we will use Visual Studio Code for Roku Channel development. Visual Studio Code download link is mentioned below
https://code.visualstudio.com
Once IDE is downloaded, we need to install extenstion for Roku Development available in VSC known as "BrightScript Language"

Step 1: Install BrightScript Language Extension

Once package is installed, open the project which you need to work upon

Step 2: Open Roku Channel Project

After opening the project goto Run and Debug option, since this is the first time we are opening this project we need to setup the environment. In this case we need to click on create a launch.json file

Step 3: Setup launch.json file

Once we click on create launch.json file, it will ask for which environment we want to setup the Run and Debug option. Here we need to choose BrightScript Debug option
Note that, BrightScript Debug option will be available under only if BrightScript Language extension is installed
Step 4: Enabling BrightScript Debug option

Once BrightScript Debug option is selected, launch.json file will be created inside project folder. There are various parameters present in the launch.json file. To avoid typing of username and password on every Run and Debug session, please make go ahead and change following parameters
host        "your-ip-address"
password    "your-roku-device-password"
Step 5: Editing launch.json file
Please note that host address should be like 192.168.87.99, no need to explicitly add http:// before the ip-address
Voila Run and Debug using VSC user interface. Also we can make use of Debug Console available as shown below to print the values of nodes or variables using commands - print, p or $
 
Debugging using VSC user interface

Special thanks to - https://github.com/rokucommunity, for bringing this extension and making life of Developer easy, :)

We would love to hear your thoughts or better approaches to debug. 
Please feel free to comment in case of any doubts or issues. Like always, Happy Coding!!! :)


Comments

  1. To know more information about roku device or roku activation using roku com link and roku streaming stick, Contact our roku technician support team at any time. We provide the 24*7 customer support. Call us our toll-free-number +1-845-470-0148 for more assistance.

    Roku Com Link
    Roku Activation Code
    Roku Activation issue
    Roku Link Code

    ReplyDelete
  2. Amazon Prime Video may be seen on a variety of devices, including computers, mobile phones, and smart TVs. Enter the Amazon Code, which is 5-6 digits long.
    amazon.com/mytv
    amazon/mytv
    amazon.com/mytv
    amazon.com/mytv

    ReplyDelete

  3. Working with a laptop or computer, head to amazon.co.uk/mytv . Sign-in with a busy email address and password click to create your Amazon account. Toconnect the device to the Amazon account, use the code that was written back at step 3. Select Carry on. Continue to
    primevideo.com/mytv
    amazon.com/mytv
    paypal login
    paypal login
    paypal login
    amazon.com/redeem

    ReplyDelete
  4. Now link your Roku device anytime with just one click. Our team of experts are 24/7 available to provide you helpdesk services for roku via Roku com link enter code. Use your computer or smartphone to access your inbox and locate the email from Roku with the activation link. Chat with us for more information.
    tv.youtube.com/start/roku
    roku com link
    amazon.com/mytv
    afrikastv roku

    ReplyDelete
  5. Getting frustrated with your roku streaming device activation issue? Don't get worried. Click here:

    tv.youtube.com/start/roku
    roku com link
    amazon.com/mytv
    afrikastv roku

    ReplyDelete
  6. Interesting post. I Have Been wondering about this issue, so thanks for posting. Pretty cool post.It 's really very nice and Useful post.Thanks
    free Hulu accounts 2021

    ReplyDelete
  7. PayMyDoctor is thought of as a website where the patient or single person can pay online for all medical bills. It is simply fast and comfortable. This website is a great way for older individuals to pay with ease and gain access to the online portal successfully.
    payymdcotor.com

    ReplyDelete
  8. Follow steps to activate YouTube on yt.be/activate or youtube.com activate with 8-digit YouTube activation code found on your TV screen.Enter your google login information. When a screen appears, select the Google+ account or page linked to YT.
    ytebactivate.com

    ReplyDelete

Post a Comment