GetDebugState

Syntax

DebugStateResult GetDebugState(OdId tObject)

Parameters

tObject. Moniker of the development environment object, for which debugging is running.

Description

The GetDebugState operation gets information about object debugging status.

Comments

An object can be started for debugging using the DebugModule operation. To execute the GetDebugState operation, in the tObject field specify moniker of the object that was started for debugging. The object moniker can be obtained on executing the GetObjects operation.

The operation results in the information about the current debugging status and the text that can be displayed by the application during the debugging.

Example

Below is the example of getting unit debugging execution status. The request contains moniker of the repository object started for debugging. The response contains the obtained information. The example uses the FindObjectById function, which code is given in the Getting Object Description by Its Identifier example.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetDebugState xmlns="http://www.fsight.ru/PP.SOM.Som">
<tObject xmlns="">
  <id>CDFENMHJDPDCGOAEFECMBDAOCBFPPLDEHJLFMBPLOGEOFKMJ!M!302490</id>
  </tObject>
  </GetDebugState>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetDebugStateResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <debugState xmlns="">Running</debugState>
  <output xmlns="">Application is started. Startup time: 14:41. </output>
  </GetDebugStateResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetDebugState" :
{
"tObject" :
{
"id" : "CDFENMHJDPDCGOAEFECMBDAOCBFPPLDEHJLFMBPLOGEOFKMJ!M!302490"
}
}
}

JSON response:

{
"GetDebugStateResult" :
{
"debugState" : "Running",
"output" : "Application is started. Startup time: 14:41. "
}
}
public static DebugStateResult GetDebugState(MbId mb, string modId)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tGet = new GetDebugState()
{
tObject = new OdId() { id = mb.id + "!" + FindObjectById(mb, modId).k }
};
// Get unit debugging status
var result = somClient.GetDebugState(tGet);
return result;
}

See also:

Working with Development Environment