How do I enable script debug mode on the player?

Follow these steps to enable the BrightScript debugger on a player:

  1. Connect your PC to the player using a serial cable (or use Telnet/SSH). The serial connection has the following settings: 
    • Baud rate: 115200
    • Data: 8 bit
    • Parity: none
    • Stop: 1 bit
    • Flow control: none
  2. Power up the player without an SD card (or any other storage device containing an autorun.brs script).
  3. Press and hold the SVC button until the red Err LED begins a three-flash cycle.
  4. Type "Script Debug On" at the shell prompt.

With Script Debug mode turned on, the player will not automatically restart when the the script causes a crash. Instead, the shell will drop in to the BrightScript debugger. Normally, with Script Debug mode turned off, the player will flash the red Err LED 10 times twice, then restart automatically.

Have more questions? Submit a request

5 Comments

  • 2
    Avatar
    Tobias Malm

    I can't get this to work using a XD1030. The LED doesn't flash when holding the SVC-button and I get nothing via RS 232 from it. I have tried using putty and Realterm. Nothing works. I have also tried enableding SSH. With the only result that the Error-LED flashes ... The only thing I got to work is telnet using a script from the github.

  • 0
    Avatar
    Lovepreet Singh Jassal

    Same problem with 4K1042

    Edit: Sending abort signal(CTRL-C) doesn't do anything and I am connected through SSH. I was able to get it working earlier but after I factory resetted the player it does not work anymore.

    Edit2: So after lot of fussing around. I was able to get it working. In case someone else wants to it, here are the steps.

    Step 1: get ssh enable plugin from brighsign github page

    Step 2: Enable SSH

    Step 3: SSH into the player.

    Step 4: Press the SVC button on the player Once(Don't need to hold it).

    step 5: Enter "Script debug on" on the prompt.

    Edited by Lovepreet Singh Jassal
  • 0
    Avatar
    Tamar Ziv

    I have followed the steps and reached the prompt, however, the command "Script" was not found, 
    and when trying lower case, it has failed, I am using the latest firmware on the XT1143.
    Any ideas?

  • 0
    Avatar
    Lovepreet Singh Jassal

    What does the prompt say? does it say brightsign or brightscript debugger or just a #?

  • 0
    Avatar
    Tamar Ziv

    it says BrightSign,

    if I enter "script" i see the following

    BrightSign> script
    BrightScript Micro Debugger.
    Enter any BrightScript statement, debug commands, or HELP.

    Current Function:
    001: stop
    STOP (runtime error &hf7) in (1)

    001: stop
    Backtrace:
    Function main() As
    file/line: (1)

    Local Variables:
    global &h0020 rotINTERFACE:ifGlobal
    m &h0010 bsc:roAssociativeArray, refcnt=2
    BrightScript Debugger> 

    EDIT: I exited script and typed it in all lowercase and it seems to work now,
    thanks for the quick reply

     

    Edited by Tamar Ziv
Please sign in to leave a comment.
Can't find what you're looking for? Try to
Powered by Zendesk