bool RemoveBreakpoint(OdId tObject, RemoveBreakpointArg tArg)
tObject. Moniker of the unit, with which code is debugged.
tArg. Operation execution parameters.
The RemoveBreakpoint operation removes the breakpoint from debugged code.
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.
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.
{
"RemoveBreakpoint" :
{
"tObject" :
{
"id" : "CDFENMHJDPDCGOAEFECMBDAOCBFPPLDEHJLFMBPLOGEOFKMJ!M!302490"
},
"tArg" :
{
"bp" :
{
"moduleKey" : "302490",
"lineNumber" : "16",
"enabled" : "false"
}
}
}
}
{
"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: