RemoveAllBreakpoints

Syntax

bool RemoveAllBreakpoints(OdId tObject)

Parameters

tObject. Moniker of the unit, with which code is debugged.

Description

The RemoveAllBreakpoints operation removes all breakpoints from the debugged code.

Comments

To execute the operation, in the tObject field specify moniker of the object that is started for debugging or is running in the debugging mode.

The operation results in the logical True if all breakpoints were removed successfully.

Example

Below is the example of removing all breakpoints from the debugged code. The request contains moniker of debugged unit. The response contains whether all breakpoints were removed successfully.

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">
<RemoveAllBreakpoints xmlns="http://www.fsight.ru/PP.SOM.Som">
<tObject xmlns="">
  <id>CDFENMHJDPDCGOAEFECMBDAOCBFPPLDEHJLFMBPLOGEOFKMJ!M!302490</id>
  </tObject>
  </RemoveAllBreakpoints>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
  <RemoveAllBreakpointsResult 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">1</RemoveAllBreakpointsResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

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

JSON response:

{
"RemoveAllBreakpointsResult" : "1"
}
public static bool RemoveAllBreakpoints(MbId mb, string modId)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tDel = new RemoveAllBreakpoints()
{
tObject = new OdId() { id = mb.id + "!" + FindObjectById(mb, modId).k }
};
// Remove all breakpoints
var result = somClient.RemoveAllBreakpoints(tDel);
return result;
}

See also:

Working with Development Environment