RemoveBreakpoint

Syntax

bool RemoveBreakpoint(OdId tObject, RemoveBreakpointArg tArg)

Parameters

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

tArg. Operation execution parameters.

Description

The RemoveBreakpoint operation removes the breakpoint from 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, and in the tArg field specify parameters of the removed breakpoint.

The operation results in the logical True if the breakpoint was removed successfully.

Example

Below is the example of removing the breakpoint from the developed code. The request contains moniker of debugged unit and information about position of the removed breakpoint. The response contains whether the breakpoint was successfully removed.

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">
<RemoveBreakpoint xmlns="http://www.fsight.ru/PP.SOM.Som">
<tObject xmlns="">
  <id>CDFENMHJDPDCGOAEFECMBDAOCBFPPLDEHJLFMBPLOGEOFKMJ!M!302490</id>
  </tObject>
<tArg xmlns="">
<bp>
  <moduleKey>302490</moduleKey>
  <lineNumber>16</lineNumber>
  <enabled>false</enabled>
  </bp>
  </tArg>
  </RemoveBreakpoint>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"RemoveBreakpoint" :
{
"tObject" :
{
"id" : "CDFENMHJDPDCGOAEFECMBDAOCBFPPLDEHJLFMBPLOGEOFKMJ!M!302490"
},
"tArg" :
{
"bp" :
{
"moduleKey" : "302490",
"lineNumber" : "16",
"enabled" : "false"
}
}
}
}

JSON response:

{
"RemoveBreakpointResult" : "1"
}
public static bool RemoveBreakpoint(MbId mb, string modId, BreakpointStruct deletedBp)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tDel = new RemoveBreakpoint()
{
tArg = new RemoveBreakpointArg()
{
bp = deletedBp
},
tObject = new OdId() { id = mb.id + "!" + FindObjectById(mb, modId).k },
};
// Remove breakpoint
var result = somClient.RemoveBreakpoint(tDel);
return result;
}

See also:

Working with Development Environment