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.

How to use "options.printOptions() cmd in DSS ?

I'm using CCS 5.5.0 and my target is F28335 and I'm trying to set few configuration settings using DSS scripts.

I tried the following command in the scripting console after connecting to the target....

activeDS.options.printOptions(".*");

but it wasn't printing anything. I ran the below JavaScript. Still nothing.

function load_code()
{
	print("Hello");
	dssScriptEnv = ScriptingEnvironment.instance();	 

	debugServer = dssScriptEnv.getServer("DebugServer.1");
	debugServer.setConfig("ezDSP28335.ccxml"); 
	debugSession = debugServer.openSession("*", "*"); 
	
	var opt;
	opt= debugSession.options.printOptions(".*");
	print(opt);
	debugSession.flash.options.printOptions(".*");

}  

Still nothing on the console window. Am I missing something? How to get the list of options related to the debugsession or the flash settings?


  • Hi Venkat,
    printOptions will stream to a standard system console, not the CCS Scripting Console. If you are in CCS already, then why the need to use that API since you can user the debugger options GUI?

    Thanks
    ki