GetForeLocalVariableList

Syntax

GetForeLocalVariableListResult GetForeLocalVariableList(GetForeLocalVariableListArg tArg)

Parameters

tArg. Operation execution parameters.

Description

The GetForeLocalVariableList operation gets information about local variables available during code block debugging.

Comments

To execute the operation, in the tArg field specify information about the unit under debugging.

The operation results in the list of names of local variables available in the code block under debugging.

Example

Below is the example of getting the list of local variables. The request contains moniker of the unit started for debugging and the code line number. The response contains the list of local variables that are determined in the code block under debugging. The C# 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">
<GetForeLocalVariableList xmlns="http://www.fsight.ru/PP.SOM.Som">
<tArg xmlns="">
<module>
  <id>CDFENMHJDPDCGOAEFECMBDAOCBFPPLDEHJLFMBPLOGEOFKMJ!M!302490</id>
  </module>
  <line>17</line>
  </tArg>
  </GetForeLocalVariableList>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetForeLocalVariableListResult 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">
<varList xmlns="">
  <it>ci</it>
  <it>i</it>
  <it>t1</it>
  <it>t2</it>
  </varList>
  </GetForeLocalVariableListResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetForeLocalVariableList" :
{
"tArg" :
{
"module" :
{
"id" : "CDFENMHJDPDCGOAEFECMBDAOCBFPPLDEHJLFMBPLOGEOFKMJ!M!302490"
},
"line" : "17"
}
}
}

JSON response:

{
"GetForeLocalVariableListResult" :
{
"varList" :
{
"it" :
[
"ci",
"i",
"t1",
"t2"
]
}
}
}
public static GetForeLocalVariableListResult GetForeLocalVariableList(MbId mb, string modId, int stopLineNumber = 0)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetForeLocalVariableList()
{
tArg = new GetForeLocalVariableListArg()
{
module = new OdId() { id = mb.id + "!" + FindObjectById(mb, modId).k },
line = stopLineNumber
}
};
// Get information about local variables
var result = somClient.GetForeLocalVariableList(tGet);
return result;
}

See also:

Working with Development Environment