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

Popular posts from this blog

[iOS] Updating iOS 16 Beta

Apple has recently announced iOS 16 in WWDC - 2022. Currently Beta versions are made available to the public for download. Most of us must be curious to get this version on their personal devices.  Previously downloading beta versions on personal devices was hectic process and requires lots of efforts to upgrade devices to latest beta versions. Now Apple has came up to update iOS devices with very simple process. With this Apple is trying to get the first hand reviews from the users before actually releasing the iOS version in the market. 1. To get the latest version of beta for iOS/iPadOS, please register yourself at the below mentioned portal with the help of Apple ID -  https://beta.apple.com/sp/betaprogram/  2. After registering login to the beta program portal and navigate to "Enroll Your Devices"  3. Download profile  4. Install the downloaded profile 5. Once profile is installed successfully, goto Settings -> General -> Software update. There you will find the be

[iOS] SwiftLint - Linter for Swift

What and Why SwiftLint??? Linter is a specialized tool that analyses our source code and helps us to find errors, bug and indentation issues. As the name suggests  SwiftLint helps us to enforce the coding styles on the swift code and makes us follow its rules and conventions. SwiftLint is an open source project and is maintained by Realm team. There are many  rules  which are defined in SwiftLint. These rules are applied to our code. If any of the compulsory rules are broken SwiftLint will either generate a warning(if not critical) or build will fail(in case of critical). This way developer has to strictly follow the rules before making any pull request and code being merged to the main codebase. This will help us in many ways. In a codebase where many developers are working from junior to senior level, there will be uniformity in writing the code and style. So codebase will be consistent and uniformed throughout. Also, the codebase will be easy to maintain and debug. The more mai