GetRuntimeObjectListResult GetRuntimeObjectList(OdId tObject)
tObject. Moniker of the development environment object, for which debugging is running.
The GetRuntimeObjectList operation gets a list of objects in memory during debugging.
To execute the operation, in the tObject field specify moniker of the object that was started for debugging.
The operation results in the list of objects in memory and information about them.
Below is the example of getting a list of objects in computer memory during code debugging. The request contains moniker of the object that is in debugging mode. The response contains the obtained list of objects and information about them.
{
"GetRuntimeObjectList" :
{
"tObject" :
{
"id" : "PBIOBPCAEDCOFOAEFFEFLOBMFDKGKIMENIGAAFCLHCNIIEAC!M!305559"
}
}
}
{
"GetRuntimeObjectListResult" :
{
"runtimeObjects" :
{
"it" :
[
{
"className" : "IMetabase",
"refCount" : "1",
"address" : "$ 1FE2F2016D0",
"comObject" : "$ 1FE303232E0",
"moduleID" : "M_DEBUG_SIMPLE",
"line" : "8"
},
{
"className" : "ArrayList",
"refCount" : "0",
"address" : "$ 1FE2F201630",
"comObject" : "$ 1FE4E1960B0",
"moduleID" : "M_DEBUG_SIMPLE",
"line" : "8"
},
{
"className" : "IArrayList",
"refCount" : "1",
"address" : "$ 1FE2F201770",
"comObject" : "$ 1FE4E1960B0",
"moduleID" : "M_DEBUG_SIMPLE",
"line" : "9"
},
{
"className" : "ICultureInfo",
"refCount" : "1",
"address" : "$ 1FE2F201810",
"comObject" : "$ 1FE3061F3A0",
"moduleID" : "M_DEBUG_SIMPLE",
"line" : "9"
}
]
}
}
}
public static GetRuntimeObjectListResult GetRuntimeObjectList(MbId mb, string modId)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetRuntimeObjectList()
{
// Create object moniker
tObject = new OdId() { id = mb.id + "!" + FindObjectById(mb, modId).k }
};
// Get objects in memory
var result = somClient.GetRuntimeObjectList(tGet);
return result;
}
See also: