winIDEA SDK
test_set_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_setEnabled():
12 connMgr = ic.ConnectionMgr()
13 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
14
15 bpCtrl = ic.CBreakpointController(connMgr)
16 bpCtrl.setBP('main')
17 bpCtrl.setEnabled(False, 'main')
18 print('BP at function "main" disabled.')
19 bpCtrl.setEnabled(True, 'main')
20 print('BP at function "main" enabled.')
21
22
23if __name__ == "__main__":
24 test_setEnabled()