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. Amazon is one the largest multinational companies worldwide that contributes to technological advancements and makes people's lives easier. Amazon is not only the largest online retailer, but it has also been recognized as a leader in multinational technology around the world. Amazon offers a wide range of technological devices including the Echo Dot and Fire TV, as well as Cloud Cam, Kindle, Fire TV, Fire TV, and Fire TV. It also offers entertainment services such as Prime Video, Music Unlimited and Amazon Digital Game Store.
    amazon.co.uk/mytv
    amazon.com/mytv
    amazon.com/code
    amazon.com/mytv

    ReplyDelete
  4. Amazon Prime Video allows you to access media and entertainment faster and more efficiently. Amazon launched Prime Video to meet its users' expectations of unlimited movie and video selections, which can be accessed anywhere, anytime. Prime Video is available on many devices. To activate Prime Video on a specific device, however, you must register it.www.amazon.com/mytv. We have provided the steps to generate the activation Code and register your device on Amazon.com/mytv for Prime Video.
    roku.com/link
    espn.com/activate
    primevideo/mytv
    paypal login

    ReplyDelete

  5. 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
  6. 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
  7. 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
  8. 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
  9. Work with a Google Play present code to go farther on your preferred matches such as Clash Royale or Pokemon-Go or even redeem your own code for the latest programs, films, songs, novels, and much more. There isn't any creditcard required, and accounts never perish .
    google play redeem code

    ReplyDelete
  10. www.amazon.com/mytv: Enter the amazon activation code/amazon myTV code shown on your smart TV screen at Amzaon.com/mytv to register your compatible device with Amazon Prime. Enjoy unlimited movies and other web shows.
    Netflix.com/tv8
    Walmart Gift Card Balance Check
    ebay gift card balance
    PayPal Login
    PayPal Login

    ReplyDelete
  11. We all noticed a dramatic shift in viewer preferences with the rise in OTT platforms. Movies have stopped going to the theaters due to the pandemic. They simply made it possible to access the OTT platforms from anywhere in the world. You can register, verify, and activate the MyTV app via www.amazon.com/mytv to become one of the most well-known web show distributors.netflix.com/activate
    amazon.com/redeem
    target.com/checkbalance
    target.com/checkbalance
    amazon.com/code

    ReplyDelete
  12. 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
  13. 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] [StoreKit] SKStoreReviewController - In-app Ratings & Reviews

After developing an application, the most important task Getting feedback from the users App promotion and encourage other users to use the app This both can be achieved by increasing the users comment on the app store by prompting the user to rate the app after a few days of usage(We don't want to frustrate users with continuous pop-ups) Previously, there were many libraries such as iRate, etc.  This requires users to leave the application and going to the app-store page of the application to rate/post review for the application. So most of the times user avoid this kind of pop-ups and used to dismiss it as soon as it appears. Ultimately this hits the app's ratings and reviews count. But now Apple has itself come to rescue by introducing SKStoreReviewController . By introducing SKStoreReviewController, Apple has made the rating process very easy. And to our surprise, all this happens in-app. So user can straight away rate and post comments if he wants to str