winIDEA SDK
test_set_bp_enabled.py
1# This script is licensed under BSD License, see file LICENSE.txt.
2#
3# (c) TASKING Germany GmbH, 2023
4
5import isystem.connect as ic
6
7
8winidea_id = ''
9
10
11def test_set_bp_enabled():
12 conn_mgr = ic.ConnectionMgr()
13 conn_mgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
14
15 bp_ctrl = ic.CBreakpointController(conn_mgr)
16 bp_handle = bp_ctrl.set_BP_symbol("main")
17
18 bp_ctrl.set_BP_enabled(bp_handle, False)
19 print(f"Breakpoint at function 'main' is disabled.")
20
21 bp_ctrl.set_BP_enabled(bp_handle, True)
22 print(f"Breakpoint at function 'main' is enabled.")
23
24
25if __name__ == "__main__":
26 test_set_bp_enabled()