winIDEA SDK
Methods toString()

Most data classes contain the method toString().

These methods return object data as a string in human readable form, usually the 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

Note: This information is intended for debugging and logging purposes only. The format and contents may change from one version to another, so any parsing is highly discouraged. All classes contain methods, which can be used to obtain the same data as provided by the toString() methods.