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.
I currently have a DSS script that launches CCS. What I'm wondering now is if I can transfer execution to the JavaScript console within the IDE (as if I had "loaded" the script).
At the end of the day I want to be able to do my GUI based debugging, then call functions from my script at some point when the target is halted. Do you know of any way to do this? Alternately, would it be possible to add menu items which would call these functions like you might with GEL scripting? Currently the only method I have to accomplish all this is to launch in debug, and busy loop after initialization; I can then halt my script and do stuff from the rhino debug shell, but this is pretty messy IMO.
Hello,
Murph612 said:I currently have a DSS script that launches CCS. What I'm wondering now is if I can transfer execution to the JavaScript console within the IDE (as if I had "loaded" the script).
I assume you want to somehow have your script continue execution from inside the javascript environment that is created from the Scripting Console. This is not possible
Murph612 said:Alternately, would it be possible to add menu items which would call these functions like you might with GEL scripting?
This is possible for scripts run from the scripting console only:
http://processors.wiki.ti.com/index.php/Scripting_Console#Script_execution_from_a_menu
Murph612 said:Currently the only method I have to accomplish all this is to launch in debug, and busy loop after initialization; I can then halt my script and do stuff from the rhino debug shell, but this is pretty messy IMO.
yeah.. hmm... maybe you should go back to running everything from the scripting console. I think the only issue was that you wanted to be able to debug the script via the rhino debugger, right?
Ki-Soo Lee said:yeah.. hmm... maybe you should go back to running everything from the scripting console. I think the only issue was that you wanted to be able to debug the script via the rhino debugger, right?
This is not a bad idea, I can see what the program is doing by reading stdout (I still haven't got stdio to work in CCS, but this is covered in another thread). Originally I had a script that ran from cmd, it would do some stuff to get to a breakpoint, then call a function. I wanted to be able to load this script from CCS. It would then detect that it was being loaded from CCS, and stop after initialization; Then I could do debugging, get to a halt point, and call the same function. This is possible, but I was having issues loading other js files, because execution was taking place in the eclipse directory not the directory of my script (so java functions to get directory weren't working); I would have to pass the directory of the script to the script or store it as a variable or something. Currently, I think I have a much better idea of the capabilities of DSS. Having the rhino debugger and CCS is actually pretty convenient, and the messiness isn't really a problem for a personal script I guess. I will decide whether to back to running everything from the scripting console later; This is a side project I'm not spending much time on.
Thanks again Ki-Soo!