bool RemoveAllBreakpoints(OdId tObject)
tObject. Moniker of the unit, with which code is debugged.
The RemoveAllBreakpoints operation removes all breakpoints from the 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.
The operation results in the logical True if all breakpoints were removed successfully.
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.
{
"RemoveAllBreakpoints" :
{
"tObject" :
{
"id" : "CDFENMHJDPDCGOAEFECMBDAOCBFPPLDEHJLFMBPLOGEOFKMJ!M!302490"
}
}
}
{
"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: