winIDEA SDK
Loading...
Searching...
No Matches
test_set_bp_enabled.py
# This script is licensed under BSD License, see file LICENSE.txt, or search for `License` in the SDK online help.
#
# (c) TASKING Germany GmbH, 2023
import isystem.connect as ic
winidea_id = ''
def test_set_bp_enabled():
conn_mgr = ic.ConnectionMgr()
conn_mgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
bp_ctrl = ic.CBreakpointController(conn_mgr)
bp_handle = bp_ctrl.set_BP_symbol("main")
bp_ctrl.set_BP_enabled(bp_handle, False)
print(f"Breakpoint at function 'main' is disabled.")
bp_ctrl.set_BP_enabled(bp_handle, True)
print(f"Breakpoint at function 'main' is enabled.")
if __name__ == "__main__":
test_set_bp_enabled()