Initializes the debugger with the provided ccxml file. This will not connect to any cores, but will prepare the debugger internally for debugging the configuration specified in the file.
The ccxml file to be used
The same value as DebuggerRootObject.listCores
let { cores, nonDebugCores } = ds.configure("my_configuration.ccxml");
Returns once the debugger is done being configured. This can take some time, especially the first time it is configured for a particular device.
Throws if the debugger is already initialized with a particular configuration. DebuggerRootObject.deconfigure must be called before configuring for a different configuration.
Open a debug session to the specified core on the device for which the debugger is configured.
Optional
corePattern: string | RegExpCan be a string or a regular expression. A debug session will be opened to the first core that matches. Defaults to the first core.
The names of the cores of the current configuration can be obtained from DebuggerRootObject.listCores.
Throws if the debugger is not currently configured, or if no matching core is found.
// Specifying an exact name
let session = ds.openSession("Texas Instruments XDS110 USB Debug Probe_0/Cortex_M4_0")
// The first core with CortexM or CortexR anywhere in the name
let session = ds.openSession("Cortex(M|R)")
// equivalently
let session = ds.openSession(/Cortex(M|R)/)
// The first core
let session = ds.openSession()
Configure a timeout duration for all future calls to scripting commands.
If a command takes longer to resolve than the timeout duration, a ScriptingTimeoutError will be thrown.
By default, the scripting timeout is disabled.
New timeout duration in milliseconds. Positive values will enable the timeout, others will disable it.
The scripting interface of the Debugger. Encapsulates all debugger operations that do not operate on a target.
To debug a given target, the debugger must be configured using DebuggerRootObject.configure and then scripting sessions to one or more of the cores on the configured target can be opened with DebuggerScripting.openSession.