8.8.1.1.1.2.18. DebugSession

interface DebugSession()
armAdvancedFeatures: ArmAdvancedFeatures
breakpoints: Breakpoints
callstack: Callstack
clock: Clock
cio: Cio
expressions: Expressions
flash: Flash
globalBreakpoint: GlobalBreakpoint
memory: Memory
registers: Registers
settings: Settings
symbols: Symbols
target: Target
getName()

Returns the name of this target. This is the same name for the target that is returned by :js:meth:~DebuggerScripting.listCores.

const name = session.getName();
console.log(`This is the session for ${name}`);
Returns:

the name of this target

Return type:

string

getPartNum()

Returns the part number of this target's device.

// get the part number
let partNum = session.getPartNum();
Returns:

the part number

Return type:

string