This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Rhino debugger

Hi,

Previous posts and many instructions on the net show that to launch the Rhino Debugger in CCSv5.3 --> dss.bat -dss.debug myScript.js needs to be used. Can anyone please tell me where exactly this needs to be written? Because I tried it in the Scripting console of CCSv5.3, it shows an error that "ReferenceError: "dss" is not defined." Is there a different console for Rhino?

Thanks in advance.

  • Sohini Chatterjee said:
    Rhino Debugger in CCSv5.3 --> dss.bat -dss.debug myScript.js needs to be used. Can anyone please tell me where exactly this needs to be written?

    This is when you are running DSS from the system command line (i.e. the DOS prompt in Windows).

    Sohini Chatterjee said:
    Because I tried it in the Scripting console of CCSv5.3,

    The Scripting Console is not a system command line console. It is actually a Javascript shell (Rhino shell).

    Thanks

    ki

  • Hi

    Thank you, but I have got further doubts. "This is when you are running DSS from the system command line (i.e. the DOS prompt in Windows)." So if I use DSS from CCSv5 itself ( that is through the scripting console- if that is possible? ) how do i launch the Rhino debugger? Also, for running JavaScript files in ccsv5 - do i need to download JDK?

    Also the steps given in http://processors.wiki.ti.com/index.php/Debug_Server_Scripting/Step_By_Step - are they only for running and loading .js files?

    Thanks in advance.

  • I am also facing another problem. When I try to create a javascript project, and write the javaScript source file and save it - it shows "Save failed. -2 save failed." Could you tell me what is wrong?
    How do I create a javaScript file and run it?
    Sorry for asking so many questions, but I am really confused.
    Thanks

  • Sohini Chatterjee said:
    " So if I use DSS from CCSv5 itself ( that is through the scripting console- if that is possible? ) how do i launch the Rhino debugger?

    You cannot. The Scripting Console is a Javascript (Rhino) Shell. You can choose to run DSS from the Rhino Shell or Rhino Debugger. You cannot choose to launch the Rhino debugger from an existing shell.

    Sohini Chatterjee said:
    Also, for running JavaScript files in ccsv5 - do i need to download JDK?

    No. You only need the JDK if you wish to run DSS from Java, no Javascript.

    Sohini Chatterjee said:
    Also the steps given in http://processors.wiki.ti.com/index.php/Debug_Server_Scripting/Step_By_Step - are they only for running and loading .js files?

    It is actually showing how to call DSS APIs directly from the Scripting Console. It is demonstrating interactive scripting via Scripting Console.

    Thanks

    ki

  • Sohini Chatterjee said:
    How do I create a javaScript file and run it?

    I just open a text editor and write my Javascript code. I would use the examples that comes with DSS as a template.

    Thanks

    ki