winIDEA SDK
test_delete_all.py
1# This script is licensed under BSD License, see file LICENSE.txt.
2# (c) TASKING Germany GmbH, 2023
3#
4# This Pyton script is used to delete all execution breakpoints.
5
6import isystem.connect as ic
7
8
9winidea_id = ''
10
11
12def test_deleteAll():
13 connMgr = ic.ConnectionMgr()
14 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
15
16 bpCtrl = ic.CBreakpointController(connMgr)
17 bpCtrl.setBP("main")
18 bpCtrl.setBP(14, "src/main.cpp")
19 bpCtrl.deleteAll()
20 print("All execution BPs deleted.")
21
22
23if __name__ == "__main__":
24 test_deleteAll()