Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
|
BrightSign offers an extensive array of developer tools. These are listed here in alphabetical order.
BrightScript Debugger
The BrightScript Debugger is a tool that facilitates debugging of BrightScript code. It is available through the BrightSign Shell (see below). To turn the BrightScript Debugger on, type script debug on
at the console. More info can be found here.
BrightSign Shell / Console
BrightSign Console / Shell
The BrightSign Shell, also referred to as the BrightSign Console, is the command line interface that enables interaction with the BrightSign OS through a serial cable or telnet/SSH, both of which have their own sections on this page.
From the BrightSign Shell, the script
command can be used to access the BrightScript DebuggerDebug Console, and the node
command can be used to access Node related functions.
From the BrightScript Debug Console, typing the exit
command will access the BrightSign Shell.
Commands for the BrightSign Shell can be found here.Instructions on how to access the console via a serial connection can be found here. ← Currently creating a public page that will combine /wiki/spaces/IKB/pages/5866586 and Ben's page
BrightScript Debug Console
The BrightScript Debugger is a tool that facilitates debugging of BrightScript code. It is available through the BrightSign Shell (see below). To turn the BrightScript Debugger on, type script debug on
at the console. More info can be found here.
Crash Dumps
When If a player encounters a non-deliberate shutdown (aka a crash), “crash dumps” are generated upon reboot. These files contain useful information that BrightSign Support can analyze and use to help troubleshootfor troubleshooting. These files can be found in the brightsign-dumps folder located in the root folder of the player’s storage device.
Further details about crash reports can be found /wiki/spaces/IKB/pages/5876561.
Diagnostic Web Server
The Diagnostic Web Server (DWS) is a powerful tool that enables inspection of various player settings and diagnostic details. Both a Local Diagnostic Web Server (LDWS, accessible over the local network via the player’s IP address or by typing http://BrightSign-NNNNNNNNNN.local
into a browser where NNNNNNNNNN
is the serial number) and Remote Diagnostic Web Server (RDWS, accessible via either the Control Cloud or Content Cloud at bsn.cloud) are available. General info about the DWS can be found here and more specific info about the RDWS can be found here.
...
HTML is a common format for displaying presentations on BrightSign players. The HTML Best Practices document will likely be very useful to developers. Specific sub-sections from that document worth noting individually are listed below.
...
Identifying and resolving memory leaks <-- currently a draft page
Web Inspector
Web pages can be debugged over the local network using the Web Inspector.
...
The node prompt is a command-line interface (CLI) that allows you to interact with Node.js. It is used to run JavaScript code and execute Node.js commands. Info Information about the Node prompt as well as the Node Inspector/Debugger can be found here.
Registry
The registry object allows you to read from and write to the player registry (the player’s persistent memory). More info about the registry can be found here.
...
The popular BrightScript Language extension Extension for VSCode facilitates coding in writing BrightScript and is used by thousands of developers around the world. Note that Brightsign’s BrightScript is a fork of Roku’s BrightScript. The forks have diverged and while they are similar, they are technically not the same. Nevertheless, developers may find value in this extensionThe value add is mainly the BrightScript syntax highlighting.
Next, we provide a recommended developer setup to help maximize efficiency in developing for the BrightSign platform.