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.

DSS getServer("DebugServer.1") choosing from multiple CCS sessions

Hello,

In DSS js script we have from the examples (Breakpoints.js)

// Get the Debug Server and start a Debug Session

debugServer = script.getServer("DebugServer.1")

 

When several CCS sessions are open (say debugging different devices), what is the grammar to select the right {workspace, CCS process id, etc.}?

 

Matt

  • Hello,
    We are in the mid of a system robustness testing and need the DSS for automation. Please kindly advise us the way to select between CCS sessions.

    Matt
  • Hi Matt,
    DSS will start a new debug session on its own. It cannot connect to an existing debug session.

    For past instances where people wanted to have a running session open and connect to it via a script, they worked around the DSS limitation by using the "Test Server" example that comes with DSS where a server script starts a DSS session and then opens a TCP/IP socket and listens for commands to execute (by calling the appropriate DSS API). A separate client script can connect to the existing open socket and send commands to it.

    Check out the readme.txt in .\ccsv5\ccs_base\scripting\examples\TestServer for more details

    Hope this helps

    Thanks
    ki