Brightscript debug console, Console commands – BrightSign BrightScript 3.0 Reference Manual User Manual
Page 59

54
BRIGHTSCRIPT DEBUG CONSOLE
If, while a script is running, a runtime error occurs or a
STOP statement is encountered, the BrightSign application will
enter the BrightScript debug console. This console can be accessed from a terminal program using a null-modem cable
connected to the RS-232, GPIO, or VGA port (depending on the player model). Networked players can also be accessed
via
The console scope is set to the function that was running when the runtime error or
STOP statement occurred. While in the
console, you can type in any BrightScript statement; it will then be compiled and executed in the current context.
Typically, the debug console is the default device for the
PRINT statement.
Console Commands
The following console commands are currently available:
bt
Print a backtrace of call-function context frames.
classes
List all public classes.
cont or c
Continue script execution.
counts
List count of BrightScript Component instances.
da
Show disassembly and bytecode for this function.
down or d
Move one position down the function context chain.
exit
Exit the debug shell.
gc
Run the garbage collector and show collection statistics.
hash
Print the internal hash-table histograms.
last
Show the last line that executed.
method
List methods provided by specified class.
method
List methods provided by the specified interface or class.
list
List the current source of the current function.