winIDEA SDK
|
Most data classes contain the toString()
method. These methods return object data as human-readable strings, typically in YAML format.
Example:
import isystem.connect as ic cmgr = ic.ConnectionMgr() cmgr.connect() debug = ic.CDebugFacade(cmgr) debug.download() debug.runUntilFunction("main") cpuStatus = debug.getCPUStatus() print('Target may still be running:\\n' + cpuStatus.toString()) debug.waitUntilStopped() cpuStatus = debug.getCPUStatus() print('Target should be stopped now:\\n' + cpuStatus.toString())
Output:
Target may still be running: CPUStatus: status: 2 execArea: 0 execAddress: 0 isMustInit: 0 isStopped: 0 isRunning: 1 isReset: 0 isHalted: 0 isWaiting: 0 isAttach: 0 isIdle: 0 isStopReasonExplicit: 0 isStopReasonBP: 0 isStopReasonStep: 0 isStopReasonHW: 0 Target should be stooped now: CPUStatus: status: 49 execArea: 0 execAddress: 1073747856 isMustInit: 0 isStopped: 1 isRunning: 0 isReset: 0 isHalted: 0 isWaiting: 0 isAttach: 0 isIdle: 0 isStopReasonExplicit: 0 isStopReasonBP: 0 isStopReasonStep: 1 isStopReasonHW: 0
toString()
methods.