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.

getting started with CCSv4 Scripting Console?



 

I've got a very basic question concerning the scripting console:

I have a very simple script (loadit.js) which is supposed to load my .out file in the active debug session:

activeDS.memory.loadProgram("debug/my_app.out")

My question is:  what do I type into the scripting console to execute this script?  I've tried loadJSFile, but I get an error:

js:> help loadJSFile                                   

loadJSFile(file,store)

Description: Load a JavaScript file or all the JavaScript files in the directory.

Arguments: 

  path - the JavaScript file or a directory.

  store - [optional] true, store the file(s) to the preference, the script will auto reload the next time the view is open.

js:> loadJSFile("loadit.js")

ReferenceError: "loadJSFile" is not defined.

 

Any pointers here would be appreciated.  Thanks!

 

p.s. I read through all the wiki pages & locally-installed docs.  They assume a level of familiarity with CCSv4 and javascript which I don't have.