import isystem.connect as ic
winidea_id = ''
def test_deleteBP():
connMgr = ic.ConnectionMgr()
connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
bpCtrl = ic.CBreakpointController(connMgr)
bpCtrl.setBP("main")
bpCtrl.deleteBP("main")
print("BP at 'main' is set and deleted (via symbol name).")
bpCtrl.setBP(215, "CORE0/startup.c")
bpCtrl.deleteBP("CORE0/startup.c", 215)
print("BP at line 215 in CORE0/startup.c is set and deleted (via file name and line number).")
bpCtrl.setBP(0, 0x20000400)
bpCtrl.deleteBP(0, 0x20000400)
print("BP at address 0x20000400 is set and deleted (via memory area and address).")
if __name__ == "__main__":
test_deleteBP()